diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Creature.java index d9409ce9a4..ad8414fe05 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -156,7 +156,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder private boolean _isMuted = false; // Cannot use magic private boolean _isPhysicalMuted = false; // Cannot use psychical skills private boolean _isKilledAlready = false; - private int _isImmobilized = 0; + private boolean _isImmobilized = false; private boolean _isOverloaded = false; // the char is carrying too much private boolean _isParalyzed = false; private boolean _isRiding = false; // Is Riding strider? @@ -2159,7 +2159,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder */ public boolean isImmobilized() { - return _isImmobilized > 0; + return _isImmobilized; } /** @@ -2171,13 +2171,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder // Stop this if he is moving getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE); - if (value) + if (_isImmobilized != value) { - _isImmobilized++; - } - else - { - _isImmobilized--; + _isImmobilized = value; } } @@ -8541,7 +8537,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder return; } - _nextReducingHPByOverTime = Chronos.currentTimeMillis() + (period * 1000); + _nextReducingHPByOverTime = Chronos.currentTimeMillis() + (period * 880); reduceCurrentHp(amount, attacker, awake); } @@ -8554,7 +8550,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder return; } - _nextReducingMPByOverTime = Chronos.currentTimeMillis() + (period * 1000); + _nextReducingMPByOverTime = Chronos.currentTimeMillis() + (period * 880); reduceCurrentMp(amount); } diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/skill/effects/EffectImobileBuff.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/skill/effects/EffectImobileBuff.java index 24298bc9ff..22455ba353 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/skill/effects/EffectImobileBuff.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/skill/effects/EffectImobileBuff.java @@ -39,19 +39,20 @@ final class EffectImobileBuff extends Effect @Override public void onStart() { + super.onStart(); getEffector().setImmobilized(true); } @Override public void onExit() { + super.onExit(); getEffector().setImmobilized(false); } @Override public boolean onActionTime() { - // just stop this effect return false; } } \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java index 995b7c299c..93c5c14325 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -158,7 +158,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder private boolean _isMuted = false; // Cannot use magic private boolean _isPhysicalMuted = false; // Cannot use psychical skills private boolean _isKilledAlready = false; - private int _isImmobilized = 0; + private boolean _isImmobilized = false; private boolean _isOverloaded = false; // the char is carrying too much private boolean _isParalyzed = false; private boolean _isRiding = false; // Is Riding strider? @@ -2202,7 +2202,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder */ public boolean isImmobilized() { - return _isImmobilized > 0; + return _isImmobilized; } /** @@ -2214,13 +2214,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder // Stop this if he is moving getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE); - if (value) + if (_isImmobilized != value) { - _isImmobilized++; - } - else - { - _isImmobilized--; + _isImmobilized = value; } } @@ -8588,7 +8584,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder return; } - _nextReducingHPByOverTime = Chronos.currentTimeMillis() + (period * 1000); + _nextReducingHPByOverTime = Chronos.currentTimeMillis() + (period * 880); reduceCurrentHp(amount, attacker, awake); } @@ -8601,7 +8597,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder return; } - _nextReducingMPByOverTime = Chronos.currentTimeMillis() + (period * 1000); + _nextReducingMPByOverTime = Chronos.currentTimeMillis() + (period * 880); reduceCurrentMp(amount); } diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/skill/effects/EffectImobileBuff.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/skill/effects/EffectImobileBuff.java index 24298bc9ff..22455ba353 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/skill/effects/EffectImobileBuff.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/skill/effects/EffectImobileBuff.java @@ -39,19 +39,20 @@ final class EffectImobileBuff extends Effect @Override public void onStart() { + super.onStart(); getEffector().setImmobilized(true); } @Override public void onExit() { + super.onExit(); getEffector().setImmobilized(false); } @Override public boolean onActionTime() { - // just stop this effect return false; } } \ No newline at end of file