diff --git a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Creature.java index 3f8dfc0232..828a1c276d 100644 --- a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -74,6 +74,7 @@ import org.l2jmobius.gameserver.model.Hit; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.PlayerCondOverride; +import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.TeleportWhereType; import org.l2jmobius.gameserver.model.TimeStamp; import org.l2jmobius.gameserver.model.World; @@ -1650,7 +1651,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe if (isMonster()) { - _effectList.stopAllEffectsWithoutExclusions(true, true); + final Spawn spawn = ((Npc) this).getSpawn(); + if ((spawn != null) && spawn.isRespawnEnabled()) + { + stopAllEffects(); + } + else + { + _effectList.stopAllEffectsWithoutExclusions(true, true); + } } else { diff --git a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/actor/Creature.java index 3f8dfc0232..828a1c276d 100644 --- a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -74,6 +74,7 @@ import org.l2jmobius.gameserver.model.Hit; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.PlayerCondOverride; +import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.TeleportWhereType; import org.l2jmobius.gameserver.model.TimeStamp; import org.l2jmobius.gameserver.model.World; @@ -1650,7 +1651,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe if (isMonster()) { - _effectList.stopAllEffectsWithoutExclusions(true, true); + final Spawn spawn = ((Npc) this).getSpawn(); + if ((spawn != null) && spawn.isRespawnEnabled()) + { + stopAllEffects(); + } + else + { + _effectList.stopAllEffectsWithoutExclusions(true, true); + } } else { diff --git a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/actor/Creature.java index 3f8dfc0232..828a1c276d 100644 --- a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -74,6 +74,7 @@ import org.l2jmobius.gameserver.model.Hit; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.PlayerCondOverride; +import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.TeleportWhereType; import org.l2jmobius.gameserver.model.TimeStamp; import org.l2jmobius.gameserver.model.World; @@ -1650,7 +1651,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe if (isMonster()) { - _effectList.stopAllEffectsWithoutExclusions(true, true); + final Spawn spawn = ((Npc) this).getSpawn(); + if ((spawn != null) && spawn.isRespawnEnabled()) + { + stopAllEffects(); + } + else + { + _effectList.stopAllEffectsWithoutExclusions(true, true); + } } else { diff --git a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Creature.java index 3f8dfc0232..828a1c276d 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -74,6 +74,7 @@ import org.l2jmobius.gameserver.model.Hit; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.PlayerCondOverride; +import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.TeleportWhereType; import org.l2jmobius.gameserver.model.TimeStamp; import org.l2jmobius.gameserver.model.World; @@ -1650,7 +1651,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe if (isMonster()) { - _effectList.stopAllEffectsWithoutExclusions(true, true); + final Spawn spawn = ((Npc) this).getSpawn(); + if ((spawn != null) && spawn.isRespawnEnabled()) + { + stopAllEffects(); + } + else + { + _effectList.stopAllEffectsWithoutExclusions(true, true); + } } else { diff --git a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Creature.java index 3f8dfc0232..828a1c276d 100644 --- a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -74,6 +74,7 @@ import org.l2jmobius.gameserver.model.Hit; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.PlayerCondOverride; +import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.TeleportWhereType; import org.l2jmobius.gameserver.model.TimeStamp; import org.l2jmobius.gameserver.model.World; @@ -1650,7 +1651,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe if (isMonster()) { - _effectList.stopAllEffectsWithoutExclusions(true, true); + final Spawn spawn = ((Npc) this).getSpawn(); + if ((spawn != null) && spawn.isRespawnEnabled()) + { + stopAllEffects(); + } + else + { + _effectList.stopAllEffectsWithoutExclusions(true, true); + } } else { diff --git a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Creature.java index 3f8dfc0232..828a1c276d 100644 --- a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -74,6 +74,7 @@ import org.l2jmobius.gameserver.model.Hit; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.PlayerCondOverride; +import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.TeleportWhereType; import org.l2jmobius.gameserver.model.TimeStamp; import org.l2jmobius.gameserver.model.World; @@ -1650,7 +1651,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe if (isMonster()) { - _effectList.stopAllEffectsWithoutExclusions(true, true); + final Spawn spawn = ((Npc) this).getSpawn(); + if ((spawn != null) && spawn.isRespawnEnabled()) + { + stopAllEffects(); + } + else + { + _effectList.stopAllEffectsWithoutExclusions(true, true); + } } else { diff --git a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Creature.java index 52d9e8537d..ea08d68a5d 100644 --- a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -74,6 +74,7 @@ import org.l2jmobius.gameserver.model.Hit; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.PlayerCondOverride; +import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.TeleportWhereType; import org.l2jmobius.gameserver.model.TimeStamp; import org.l2jmobius.gameserver.model.World; @@ -1650,7 +1651,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe if (isMonster()) { - _effectList.stopAllEffectsWithoutExclusions(true, true); + final Spawn spawn = ((Npc) this).getSpawn(); + if ((spawn != null) && spawn.isRespawnEnabled()) + { + stopAllEffects(); + } + else + { + _effectList.stopAllEffectsWithoutExclusions(true, true); + } } else { diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Creature.java index e9a8ea3c0b..c09874c129 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -64,6 +64,7 @@ import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.PlayerCondOverride; +import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.TeleportWhereType; import org.l2jmobius.gameserver.model.TimeStamp; import org.l2jmobius.gameserver.model.World; @@ -2403,7 +2404,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe if (isMonster()) { - _effectList.stopAllEffectsWithoutExclusions(true, true); + final Spawn spawn = ((Npc) this).getSpawn(); + if ((spawn != null) && spawn.isRespawnEnabled()) + { + stopAllEffects(); + } + else + { + _effectList.stopAllEffectsWithoutExclusions(true, true); + } } else { diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Creature.java index ca77710832..55b35292cb 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -74,6 +74,7 @@ import org.l2jmobius.gameserver.model.Hit; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.PlayerCondOverride; +import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.TeleportWhereType; import org.l2jmobius.gameserver.model.TimeStamp; import org.l2jmobius.gameserver.model.World; @@ -1650,7 +1651,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe if (isMonster()) { - _effectList.stopAllEffectsWithoutExclusions(true, true); + final Spawn spawn = ((Npc) this).getSpawn(); + if ((spawn != null) && spawn.isRespawnEnabled()) + { + stopAllEffects(); + } + else + { + _effectList.stopAllEffectsWithoutExclusions(true, true); + } } else { diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Creature.java index ca77710832..55b35292cb 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -74,6 +74,7 @@ import org.l2jmobius.gameserver.model.Hit; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.PlayerCondOverride; +import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.TeleportWhereType; import org.l2jmobius.gameserver.model.TimeStamp; import org.l2jmobius.gameserver.model.World; @@ -1650,7 +1651,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe if (isMonster()) { - _effectList.stopAllEffectsWithoutExclusions(true, true); + final Spawn spawn = ((Npc) this).getSpawn(); + if ((spawn != null) && spawn.isRespawnEnabled()) + { + stopAllEffects(); + } + else + { + _effectList.stopAllEffectsWithoutExclusions(true, true); + } } else { diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Creature.java index ca77710832..55b35292cb 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -74,6 +74,7 @@ import org.l2jmobius.gameserver.model.Hit; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.PlayerCondOverride; +import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.TeleportWhereType; import org.l2jmobius.gameserver.model.TimeStamp; import org.l2jmobius.gameserver.model.World; @@ -1650,7 +1651,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe if (isMonster()) { - _effectList.stopAllEffectsWithoutExclusions(true, true); + final Spawn spawn = ((Npc) this).getSpawn(); + if ((spawn != null) && spawn.isRespawnEnabled()) + { + stopAllEffects(); + } + else + { + _effectList.stopAllEffectsWithoutExclusions(true, true); + } } else { diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Creature.java index ca77710832..55b35292cb 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -74,6 +74,7 @@ import org.l2jmobius.gameserver.model.Hit; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.PlayerCondOverride; +import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.TeleportWhereType; import org.l2jmobius.gameserver.model.TimeStamp; import org.l2jmobius.gameserver.model.World; @@ -1650,7 +1651,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe if (isMonster()) { - _effectList.stopAllEffectsWithoutExclusions(true, true); + final Spawn spawn = ((Npc) this).getSpawn(); + if ((spawn != null) && spawn.isRespawnEnabled()) + { + stopAllEffects(); + } + else + { + _effectList.stopAllEffectsWithoutExclusions(true, true); + } } else { diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Creature.java index ca77710832..55b35292cb 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -74,6 +74,7 @@ import org.l2jmobius.gameserver.model.Hit; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.PlayerCondOverride; +import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.TeleportWhereType; import org.l2jmobius.gameserver.model.TimeStamp; import org.l2jmobius.gameserver.model.World; @@ -1650,7 +1651,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe if (isMonster()) { - _effectList.stopAllEffectsWithoutExclusions(true, true); + final Spawn spawn = ((Npc) this).getSpawn(); + if ((spawn != null) && spawn.isRespawnEnabled()) + { + stopAllEffects(); + } + else + { + _effectList.stopAllEffectsWithoutExclusions(true, true); + } } else {