Refactored isWallArcher().

This commit is contained in:
2023-04-24 09:22:01 -04:00
parent 4ae55b9bd8
commit 3419c1ceea
3 changed files with 16 additions and 24 deletions
+1 -1
View File
@@ -1903,7 +1903,7 @@ public class Mob extends AbstractIntelligenceAgent {
if (this.BehaviourType == null)
this.BehaviourType = this.getMobBase().fsm;
if (this.isPlayerGuard() && this.contract != null) if (NPC.ISWallArcher(this.getContract().getContractID()))
if (this.isPlayerGuard() && this.contract != null) if (NPC.ISWallArcher(this.getContract()))
this.BehaviourType = MobBehaviourType.GuardWallArcher;
else this.BehaviourType = MobBehaviourType.GuardCaptain;