removed obvious bug in guards dropping aggro

This commit is contained in:
2023-05-07 08:12:42 -05:00
parent 14f98493c7
commit b899708cd5
-5
View File
@@ -38,11 +38,6 @@ public class MobileFSM {
}
if (!CombatUtilities.inRangeToAttack(mob, target))
return;
if(mob.BehaviourType.ordinal() == Enum.MobBehaviourType.GuardCaptain.ordinal()){
if(!GuardCanAggro(mob, (PlayerCharacter)mob.getCombatTarget())){
mob.setCombatTarget(null);
}
}
switch (target.getObjectType()) {
case PlayerCharacter:
PlayerCharacter targetPlayer = (PlayerCharacter) target;