}
@Override
protected void onEvtAttacked(L2Character attacker, int damage)
{
L2NpcInstance actor = getActor();
if(actor == null)
{
return;
}
GArray<L2Character> targetList = new GArray<L2Character>();
for(L2Character character : actor.getAroundCharacters(900, 200))
{
if(character.isNpc())
{
targetList.add(character);
}
}
if(targetList.size() == 0)
{
return;
}
for(int i = 0; i < targetList.size(); i++)
{
L2Character target = targetList.get(i);
target.setCurrentHp(target.getCurrentHp() - 10000, true);
if(target.getCurrentHp() <= 0)
{
target.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}
}
// Only for displaying animation in client
actor.doCast(SkillTable.getInstance().getInfo(5714, 1), attacker, true);
actor.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
}