L2SummonAI should set follow status to true when target is set to null.

This commit is contained in:
MobiusDev 2016-12-27 09:32:41 +00:00
parent 0484d405ee
commit acfcb8260d

View File

@ -99,6 +99,7 @@ public class L2SummonAI extends L2PlayableAI implements Runnable
if (checkTargetLostOrDead(attackTarget))
{
setTarget(null);
((L2Summon) _actor).setFollowStatus(true);
return;
}
if (maybeMoveToPawn(attackTarget, _actor.getPhysicalAttackRange()))
@ -121,6 +122,7 @@ public class L2SummonAI extends L2PlayableAI implements Runnable
if (checkTargetLost(target))
{
setTarget(null);
summon.setFollowStatus(true);
return;
}
final boolean val = _startFollow;