From 806adee3deef6860cdb93ddf283b7634403663d2 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 28 Jan 2025 17:47:44 -0600 Subject: [PATCH] fortitude fix --- src/engine/gameManager/CombatManager.java | 2 +- src/engine/mobileAI/utilities/CombatUtilities.java | 2 +- src/engine/objects/Resists.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index 90ec0034..26be4755 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -864,7 +864,7 @@ public enum CombatManager { } } - Resists.handleFortitude(tarAc,damageType,damage); + //Resists.handleFortitude(tarAc,damageType,damage); float d = 0f; diff --git a/src/engine/mobileAI/utilities/CombatUtilities.java b/src/engine/mobileAI/utilities/CombatUtilities.java index f65444c3..a88ca91a 100644 --- a/src/engine/mobileAI/utilities/CombatUtilities.java +++ b/src/engine/mobileAI/utilities/CombatUtilities.java @@ -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); diff --git a/src/engine/objects/Resists.java b/src/engine/objects/Resists.java index 324b553f..3456ee84 100644 --- a/src/engine/objects/Resists.java +++ b/src/engine/objects/Resists.java @@ -480,7 +480,7 @@ public class Resists { } target.cancelOnTakeDamage(type, (damageAfterResists)); } - //damageAfterResists = handleFortitude(target, type, damageAfterResists); + damageAfterResists = handleFortitude(target, type, damageAfterResists); return damageAfterResists; }