|
|
@ -428,6 +428,7 @@ public class MobAI { |
|
|
|
mob.updateLocation(); |
|
|
|
mob.updateLocation(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!mob.isPet()) { |
|
|
|
boolean combatState = mob.isCombat(); |
|
|
|
boolean combatState = mob.isCombat(); |
|
|
|
mob.setCombat(mob.combatTarget != null); |
|
|
|
mob.setCombat(mob.combatTarget != null); |
|
|
|
if (combatState != mob.isCombat()) { |
|
|
|
if (combatState != mob.isCombat()) { |
|
|
@ -443,7 +444,14 @@ public class MobAI { |
|
|
|
//send message to update run/walk state
|
|
|
|
//send message to update run/walk state
|
|
|
|
MovementManager.sendRWSSMsg(mob); |
|
|
|
MovementManager.sendRWSSMsg(mob); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
boolean walking = mob.isWalk(); |
|
|
|
|
|
|
|
mob.setWalkMode(mob.guardCaptain.isWalk()); |
|
|
|
|
|
|
|
if (walking != mob.isWalk()) { |
|
|
|
|
|
|
|
//send message to update run/walk state
|
|
|
|
|
|
|
|
MovementManager.sendRWSSMsg(mob); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
switch (mob.behaviourType) { |
|
|
|
switch (mob.behaviourType) { |
|
|
|
case GuardCaptain: |
|
|
|
case GuardCaptain: |
|
|
|
GuardCaptainLogic(mob); |
|
|
|
GuardCaptainLogic(mob); |
|
|
|