Remove all effects from dead monsters.

This commit is contained in:
MobiusDev 2017-11-13 17:12:56 +00:00
parent 52876475b7
commit 90ce1ed8f3
5 changed files with 40 additions and 5 deletions

View File

@ -1908,7 +1908,14 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// Stop HP/MP/CP Regeneration task
getStatus().stopHpMpRegeneration();
if (isMonster())
{
stopAllEffects();
}
else
{
stopAllEffectsExceptThoseThatLastThroughDeath();
}
// Send the Server->Client packet StatusUpdate with current HP and MP to all other L2PcInstance to inform
broadcastStatusUpdate();

View File

@ -1912,7 +1912,14 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// Stop HP/MP/CP Regeneration task
getStatus().stopHpMpRegeneration();
if (isMonster())
{
stopAllEffects();
}
else
{
stopAllEffectsExceptThoseThatLastThroughDeath();
}
// Send the Server->Client packet StatusUpdate with current HP and MP to all other L2PcInstance to inform
broadcastStatusUpdate();

View File

@ -1912,7 +1912,14 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// Stop HP/MP/CP Regeneration task
getStatus().stopHpMpRegeneration();
if (isMonster())
{
stopAllEffects();
}
else
{
stopAllEffectsExceptThoseThatLastThroughDeath();
}
// Send the Server->Client packet StatusUpdate with current HP and MP to all other L2PcInstance to inform
broadcastStatusUpdate();

View File

@ -1912,7 +1912,14 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// Stop HP/MP/CP Regeneration task
getStatus().stopHpMpRegeneration();
if (isMonster())
{
stopAllEffects();
}
else
{
stopAllEffectsExceptThoseThatLastThroughDeath();
}
// Send the Server->Client packet StatusUpdate with current HP and MP to all other L2PcInstance to inform
broadcastStatusUpdate();

View File

@ -1912,7 +1912,14 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// Stop HP/MP/CP Regeneration task
getStatus().stopHpMpRegeneration();
if (isMonster())
{
stopAllEffects();
}
else
{
stopAllEffectsExceptThoseThatLastThroughDeath();
}
// Send the Server->Client packet StatusUpdate with current HP and MP to all other L2PcInstance to inform
broadcastStatusUpdate();