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

Port From (https://github.com/TrinityCore/TrinityCore/commit/c968dedfee59db53fc912ac166309f3d87470821)
This commit is contained in:
Hondacrx
2024-08-26 16:15:18 -04:00
parent 40db30bc58
commit f908481bce
9 changed files with 131 additions and 127 deletions
+1 -1
View File
@@ -3100,7 +3100,7 @@ namespace Game.Entities
}
// ...or immuned
if (IsImmunedToDamage(spellInfo))
if (IsImmunedToDamage(this, spellInfo))
{
victim.SendSpellDamageImmune(this, spellInfo.Id, false);
continue;