|
|
@ -322,15 +322,13 @@ public class MobAI { |
|
|
|
|
|
|
|
|
|
|
|
if(mob.isPlayerGuard == true){ |
|
|
|
if(mob.isPlayerGuard == true){ |
|
|
|
int contractID; |
|
|
|
int contractID; |
|
|
|
if(mob.BehaviourType.ordinal() == Enum.MobBehaviourType.GuardMinion.ordinal()){ |
|
|
|
if(mob.BehaviourType.equals(Enum.MobBehaviourType.GuardMinion)) |
|
|
|
contractID = mob.npcOwner.contract.getContractID(); |
|
|
|
contractID = mob.npcOwner.contract.getContractID(); |
|
|
|
} else{ |
|
|
|
else |
|
|
|
contractID = mob.contract.getContractID(); |
|
|
|
contractID = mob.contract.getContractID(); |
|
|
|
} |
|
|
|
if(Enum.MinionType.ContractToMinionMap.get(contractID).isMage() == false) |
|
|
|
if(Enum.MinionType.ContractToMinionMap.get(contractID).isMage() == false){ |
|
|
|
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mob.mobPowers.isEmpty()) |
|
|
|
if (mob.mobPowers.isEmpty()) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|