forked from MagicBane/Server
mobs no longer try to cancel auto-attack jobs they dont have
This commit is contained in:
@@ -632,6 +632,8 @@ public enum CombatManager {
|
|||||||
}
|
}
|
||||||
public static void cancelAutoAttackJob(AbstractCharacter attacker, mbEnums.EquipSlotType slot) {
|
public static void cancelAutoAttackJob(AbstractCharacter attacker, mbEnums.EquipSlotType slot) {
|
||||||
|
|
||||||
|
if(attacker.getObjectType().equals(mbEnums.GameObjectType.PlayerCharacter) == false)
|
||||||
|
return;
|
||||||
attacker.getTimestamps().put("Attack" + slot.name(), System.currentTimeMillis());
|
attacker.getTimestamps().put("Attack" + slot.name(), System.currentTimeMillis());
|
||||||
|
|
||||||
//handle auto attack job creation
|
//handle auto attack job creation
|
||||||
|
|||||||
Reference in New Issue
Block a user