DS immunity fixed

This commit is contained in:
2024-09-03 18:56:57 -05:00
parent 9e27c69906
commit ae6b584a5f
2 changed files with 9 additions and 0 deletions
@@ -664,6 +664,9 @@ public enum CombatManager {
DeferredPowerJob dpj = null;
int max = (int)atr;
if(max < 10)
max = 10;
int min = (int)(max * 0.5f);
if(max < min){
min = max - 1;
@@ -673,6 +676,8 @@ public enum CombatManager {
if(AbstractCharacter.IsAbstractCharacter(target)){
AbstractCharacter tar = (AbstractCharacter) target;
max = tar.defenseRating;
if(max < 1)
max = 10;
min = (int)(max * 0.5f);
if(max < min){
min = max - 1;
@@ -2346,6 +2346,8 @@ public enum PowersManager {
boolean disable = true;
int max = (int)atr;
if(max < 10)
max = 10;
int min = (int)(max * 0.5f);
if(max < min){
min = max - 1;
@@ -2355,6 +2357,8 @@ public enum PowersManager {
if(AbstractCharacter.IsAbstractCharacter(awo)){
AbstractCharacter tar = (AbstractCharacter) awo;
max = tar.defenseRating;
if(max < 10)
max = 10;
min = (int)(max * 0.5f);
if(max < min){
min = max - 1;