Explorar el Código

BETA: Prevent a bug causing players continue moving while paralyzed.

Nik hace 13 años
padre
commit
41489b47c9

+ 2 - 0
L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/EffectParalyze.java

@@ -14,6 +14,7 @@
  */
 package handlers.effecthandlers;
 
+import com.l2jserver.gameserver.ai.CtrlIntention;
 import com.l2jserver.gameserver.model.CharEffectList;
 import com.l2jserver.gameserver.model.L2Effect;
 import com.l2jserver.gameserver.skills.AbnormalEffect;
@@ -62,6 +63,7 @@ public class EffectParalyze extends L2Effect
 	public boolean onStart()
 	{
 		getEffected().startAbnormalEffect(AbnormalEffect.HOLD_1);
+		getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE, getEffector());
 		getEffected().startParalyze();
 		return super.onStart();
 	}