From 49ea9e50cf26850f3828297f1d9cce8d752db2f0 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 18 Jan 2025 15:57:20 -0600 Subject: [PATCH] mob work --- src/engine/mobileAI/utilities/CombatUtilities.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/mobileAI/utilities/CombatUtilities.java b/src/engine/mobileAI/utilities/CombatUtilities.java index 39084a81..e61fcbda 100644 --- a/src/engine/mobileAI/utilities/CombatUtilities.java +++ b/src/engine/mobileAI/utilities/CombatUtilities.java @@ -140,7 +140,11 @@ public class CombatUtilities { public static boolean triggerDefense(Mob agent, AbstractWorldObject target) { int defense = 0; - int atr = agent.getAtrHandOne(); + int atr = agent.mobBase.getAtr(); + if(agent.getBonuses() != null){ + atr += agent.getBonuses().getFloat(ModType.OCV,SourceType.None); + atr *= agent.getBonuses().getFloatPercentAll(ModType.OCV,SourceType.None); + } switch (target.getObjectType()) { case PlayerCharacter: defense = ((AbstractCharacter) target).getDefenseRating();