@Override
protected boolean thinkActive()
{
L2NpcInstance actor = getActor();
if(actor == null)
return true;
L2NpcInstance target = null;
if(getIntention() == CtrlIntention.AI_INTENTION_ACTIVE)
{
for(L2NpcInstance npc : L2World.getAroundNpc(actor, 1000, 200))
if(npc.getNpcId() == ID_ВРАЖЕСКОГО_МОБА_ИЛИ_ДРУГАЯ_ПРОВЕРКА)
{
npc.addDamageHate(actor, 0, 100);
target = npc;
}
if(target != null)
setIntention(CtrlIntention.AI_INTENTION_ATTACK, target);
}
return true;
}