use calculated value son PC for combat stats

This commit is contained in:
2025-02-03 20:20:01 -06:00
parent 4e417c8810
commit afbe23fc03
3 changed files with 19 additions and 2 deletions
@@ -148,7 +148,9 @@ public class CombatUtilities {
}
switch (target.getObjectType()) {
case PlayerCharacter:
defense = ((AbstractCharacter) target).getDefenseRating();
PlayerCharacter pc = (PlayerCharacter)target;
pc.combatStats.calculateDefense();
defense = pc.combatStats.defense;
break;
case Mob: