Index: model/L2Effect.java
===================================================================
--- model/L2Effect.java (revision 1879)
+++ model/L2Effect.java (working copy)
@@ -451,7 +451,9 @@
if (_state == EffectState.FINISHING)
{
// Cancel the effect in the the abnormal effect map of the L2Character
- if (getInUse()) onExit();
+ if (!getInUse()) onExit();
+ if (_skill.getTransformId() < 1)
+ setInUse(false);
//If the time left is equal to zero, send the message
if (_count == 0)
Index: skills/effects/EffectImmobileBuff.java
===================================================================
--- skills/effects/EffectImmobileBuff.java (revision 1879)
+++ skills/effects/EffectImmobileBuff.java (working copy)
@@ -1,58 +1,59 @@
-/*
- * This program is free software: you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation, either version 3 of the License, or (at your option) any later
- * version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- * details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see .
- */
-package net.sf.l2j.gameserver.skills.effects;
-
-import net.sf.l2j.gameserver.model.L2Effect;
-import net.sf.l2j.gameserver.skills.Env;
-
-/**
- * @author mkizub
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-final class EffectImmobileBuff extends L2Effect {
-
- public EffectImmobileBuff(Env env, EffectTemplate template)
- {
- super(env, template);
- }
-
- @Override
- public EffectType getEffectType()
- {
- return EffectType.BUFF;
- }
-
- /** Notify started */
- @Override
- public void onStart() {
- getEffector().setIsImmobilized(true);
- }
-
- /** Notify exited */
- @Override
- public void onExit() {
- getEffector().setIsImmobilized(false);
- }
-
- @Override
- public boolean onActionTime()
- {
- // just stop this effect
- return false;
- }
-}
-
+/*
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see .
+ */
+package net.sf.l2j.gameserver.skills.effects;
+
+import net.sf.l2j.gameserver.model.L2Effect;
+import net.sf.l2j.gameserver.skills.Env;
+
+/**
+ * @author mkizub
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+final class EffectImmobileBuff extends L2Effect {
+
+ public EffectImmobileBuff(Env env, EffectTemplate template)
+ {
+ super(env, template);
+ }
+
+ @Override
+ public EffectType getEffectType()
+ {
+ return EffectType.BUFF;
+ }
+
+ /** Notify started */
+ @Override
+ public void onStart() {
+ getEffector().setIsImmobilized(true);
+ }
+
+ /** Notify exited */
+ @Override
+ public void onExit() {
+ getEffector().setIsImmobilized(false);
+ }
+
+ @Override
+ public boolean onActionTime()
+ {
+ // just stop this effect
+ getEffector().setIsImmobilized(false);
+ return false;
+ }
+}
+