L2SummonAI should set follow status to true when target is set to null.
This commit is contained in:
@@ -99,6 +99,7 @@ public class L2SummonAI extends L2PlayableAI implements Runnable
|
|||||||
if (checkTargetLostOrDead(attackTarget))
|
if (checkTargetLostOrDead(attackTarget))
|
||||||
{
|
{
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
((L2Summon) _actor).setFollowStatus(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (maybeMoveToPawn(attackTarget, _actor.getPhysicalAttackRange()))
|
if (maybeMoveToPawn(attackTarget, _actor.getPhysicalAttackRange()))
|
||||||
@@ -121,6 +122,7 @@ public class L2SummonAI extends L2PlayableAI implements Runnable
|
|||||||
if (checkTargetLost(target))
|
if (checkTargetLost(target))
|
||||||
{
|
{
|
||||||
setTarget(null);
|
setTarget(null);
|
||||||
|
summon.setFollowStatus(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final boolean val = _startFollow;
|
final boolean val = _startFollow;
|
||||||
|
Reference in New Issue
Block a user