L2NpcInstance actor = getActor();
if(actor == null)
{
return false;
}
if(!actor.followToCharacter(target, actor.getPhysicalAttackRange(), true))
{
_pathfind_fails++;
}
if(_pathfind_fails >= getMaxPathfindFails() && System.currentTimeMillis() - (actor.getAttackTimeout() - getMaxAttackTimeout()) < getTeleportTimeout() && actor.isInRange(target, 2000))
{