Core/Spells: Implement SPELL_ATTR7_BYPASS_NO_RESURRECT_AURA

Port From (https://github.com/TrinityCore/TrinityCore/commit/2ae67de4c0f327edc60d5da9cc815016d48b7228)
This commit is contained in:
hondacrx
2022-05-05 09:36:14 -04:00
parent 3baad2a8c5
commit 1daa90dfb9
3 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -1160,7 +1160,7 @@ namespace Game.Spells
if (ExcludeTargetAuraSpell != 0 && unitTarget.HasAura(ExcludeTargetAuraSpell))
return SpellCastResult.TargetAurastate;
if (unitTarget.HasAuraType(AuraType.PreventResurrection))
if (unitTarget.HasAuraType(AuraType.PreventResurrection) && !HasAttribute(SpellAttr7.BypassNoResurrectAura))
if (HasEffect(SpellEffectName.SelfResurrect) || HasEffect(SpellEffectName.Resurrect))
return SpellCastResult.TargetCannotBeResurrected;