Browse Source

fortitude fix

lakebane
FatBoy-DOTC 2 days ago
parent
commit
806adee3de
  1. 2
      src/engine/gameManager/CombatManager.java
  2. 2
      src/engine/mobileAI/utilities/CombatUtilities.java
  3. 2
      src/engine/objects/Resists.java

2
src/engine/gameManager/CombatManager.java

@ -864,7 +864,7 @@ public enum CombatManager { @@ -864,7 +864,7 @@ public enum CombatManager {
}
}
Resists.handleFortitude(tarAc,damageType,damage);
//Resists.handleFortitude(tarAc,damageType,damage);
float d = 0f;

2
src/engine/mobileAI/utilities/CombatUtilities.java

@ -102,7 +102,7 @@ public class CombatUtilities { @@ -102,7 +102,7 @@ public class CombatUtilities {
return;
if (AbstractWorldObject.IsAbstractCharacter(target)) {
damage = Resists.handleFortitude((AbstractCharacter) target,DamageType.Crush,damage);
//damage = Resists.handleFortitude((AbstractCharacter) target,DamageType.Crush,damage);
trueDamage = ((AbstractCharacter) target).modifyHealth(-damage, agent, false);
}else if (target.getObjectType() == GameObjectType.Building)
trueDamage = ((Building) target).modifyHealth(-damage, agent);

2
src/engine/objects/Resists.java

@ -480,7 +480,7 @@ public class Resists { @@ -480,7 +480,7 @@ public class Resists {
}
target.cancelOnTakeDamage(type, (damageAfterResists));
}
//damageAfterResists = handleFortitude(target, type, damageAfterResists);
damageAfterResists = handleFortitude(target, type, damageAfterResists);
return damageAfterResists;
}

Loading…
Cancel
Save