Remove active skill effects if monster set to respawn.
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user