New addAttackDesire method.

This commit is contained in:
MobiusDev
2016-02-07 13:15:29 +00:00
parent e08de63a5c
commit fff8cd473b
48 changed files with 100 additions and 187 deletions

View File

@ -16,8 +16,6 @@
*/
package ai.npc.ForgeOfTheGods;
import com.l2jmobius.gameserver.ai.CtrlIntention;
import com.l2jmobius.gameserver.model.actor.L2Attackable;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@ -167,8 +165,7 @@ final class ForgeOfTheGods extends AbstractNpcAI
}
if (mob != null)
{
((L2Attackable) mob).addDamageHate(killer, 0, 9999);
mob.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK);
addAttackDesire(mob, killer);
}
return super.onKill(npc, killer, isSummon);
}