Support for applying effect on dead enemy when skill remains after death.

This commit is contained in:
MobiusDevelopment
2020-11-21 10:11:07 +00:00
parent f2267fb5d0
commit 9ceed6b399
68 changed files with 85 additions and 323 deletions

View File

@ -874,7 +874,7 @@ public class EffectList
}
// Prevent adding and initializing buffs/effects on dead creatures.
if (info.getEffected().isDead())
if (info.getEffected().isDead() && !info.getSkill().isStayAfterDeath())
{
return;
}
@ -904,7 +904,7 @@ public class EffectList
final Skill skill = info.getSkill();
// Cannot add active buff to dead creature. Even in retail if you are dead with Lv. 3 Shillien's Breath, it will disappear instead of going 1 level down.
if (info.getEffected().isDead())
if (info.getEffected().isDead() && !info.getSkill().isStayAfterDeath())
{
return;
}

View File

@ -322,7 +322,7 @@ public class BuffInfo
for (AbstractEffect effect : _effects)
{
if (effect.isInstant() || (_effected.isDead() && !_skill.isPassive()))
if (effect.isInstant() || (_effected.isDead() && !_skill.isPassive() && !_skill.isStayAfterDeath()))
{
continue;
}