Retail follow owner intention when servitor is away from owner.
This commit is contained in:
parent
6788675443
commit
6b74b036a6
@ -31,6 +31,7 @@ import java.util.logging.Logger;
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.CharSummonTable;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.SummonEffectsTable;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.SummonEffectsTable.SummonEffect;
|
||||
@ -573,6 +574,12 @@ public class L2ServitorInstance extends L2Summon implements Runnable
|
||||
|
||||
sendPacket(new SetSummonRemainTime(getLifeTime(), _lifeTimeRemaining));
|
||||
updateEffectIcons();
|
||||
|
||||
// Using same task to check if owner is in visible range
|
||||
if (calculateDistance(getOwner(), true, false) > 2000)
|
||||
{
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_FOLLOW, getOwner());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user