Prechádzať zdrojové kódy

Effect RemoveTarget should stop autoattack.
Now Bluff does not use fear and possible to commit this.

_DS_ 16 rokov pred
rodič
commit
28f62689fe

+ 2 - 0
L2_GameServer/java/net/sf/l2j/gameserver/skills/effects/EffectRemoveTarget.java

@@ -14,6 +14,7 @@
  */
 package net.sf.l2j.gameserver.skills.effects;
 
+import net.sf.l2j.gameserver.ai.CtrlIntention;
 import net.sf.l2j.gameserver.model.L2Effect;
 import net.sf.l2j.gameserver.skills.Env;
 import net.sf.l2j.gameserver.templates.effects.EffectTemplate;
@@ -50,6 +51,7 @@ public class EffectRemoveTarget extends L2Effect
 		getEffected().setTarget(null);
 		getEffected().abortAttack();
 		getEffected().abortCast();
+		getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE, getEffector());
 		return true;
 	}