Skip to content
Snippets Groups Projects
Commit e6af00f8 authored by Zoey76's avatar Zoey76
Browse files

Check whether target has AI on Get Aggro effect

Contributor: ShinichiYao
parent 00eed57a
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ public final class GetAgro extends AbstractEffect
@Override
public void onStart(BuffInfo info)
{
if (info.getEffected() instanceof L2Attackable)
if ((info.getEffected() instanceof L2Attackable) && info.getEffected().hasAI() && (((L2Attackable) info.getEffected()).getMostHated() != info.getEffector()))
{
info.getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, info.getEffector());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment