Core/Spells: Fixed implementation of SPELL_ATTR1_IMMUNITY_TO_HOSTILE_AND_FRIENDLY_EFFECTS and removed banish special cases that were neccessary because that attribute wasn't correctly supported

(cherry picked from commit c968dedfee)
This commit is contained in:
Shauren
2024-06-19 20:14:53 +02:00
committed by Ovahlord
parent efb10637de
commit f52d9b9916
10 changed files with 155 additions and 144 deletions

View File

@@ -1048,7 +1048,7 @@ class spell_sindragosa_s_fury : public SpellScript
if (!GetHitUnit()->IsAlive() || !_targetCount)
return;
if (GetHitUnit()->IsImmunedToDamage(GetSpellInfo(), &GetEffectInfo()))
if (GetHitUnit()->IsImmunedToDamage(GetCaster(), GetSpellInfo(), &GetEffectInfo()))
{
GetCaster()->SendSpellDamageImmune(GetHitUnit(), GetSpellInfo()->Id, false);
return;