Core/Spells: Implemented SPELL_ATTR9_FORCE_CORPSE_TARGET

Port From (https://github.com/TrinityCore/TrinityCore/commit/af39104798d78f0cf8f51dc36e7302f1f4e69b7b)
This commit is contained in:
Hondacrx
2024-08-31 17:37:20 -04:00
parent 03bcadf2c6
commit bc7568ca34
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8857,7 +8857,7 @@ namespace Game.Spells
spell.m_damage = Damage;
spell.m_healing = Healing;
if (unit.IsAlive() != IsAlive)
if (unit.IsAlive() != IsAlive && !spell.m_spellInfo.HasAttribute(SpellAttr9.ForceCorpseTarget))
return;
if (!spell.m_spellInfo.HasAttribute(SpellAttr8.IgnoreSanctuary) && spell.GetState() == SpellState.Delayed && !spell.IsPositive() && (GameTime.GetGameTimeMS() - TimeDelay) <= unit.LastSanctuaryTime)