forked from MagicBane/Server
wall archer early exit for canCast
This commit is contained in:
@@ -323,6 +323,8 @@ public class MobAI {
|
|||||||
|
|
||||||
if (mob.isPlayerGuard() == true) {
|
if (mob.isPlayerGuard() == true) {
|
||||||
|
|
||||||
|
if(mob.agentType.equals(Enum.AIAgentType.GUARDWALLARCHER))
|
||||||
|
return false; //wall archers don't cast
|
||||||
if (mob.agentType.equals(Enum.AIAgentType.GUARDMINION))
|
if (mob.agentType.equals(Enum.AIAgentType.GUARDMINION))
|
||||||
contractID = mob.guardCaptain.contract.getContractID();
|
contractID = mob.guardCaptain.contract.getContractID();
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user