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:
@@ -9002,7 +9002,7 @@ namespace Game.Spells
|
||||
// Fill base damage struct (unitTarget - is real spell target)
|
||||
SpellNonMeleeDamage damageInfo = new(caster, spell.unitTarget, spell.m_spellInfo, spell.m_SpellVisual, spell.m_spellSchoolMask, spell.m_castId);
|
||||
// Check damage immunity
|
||||
if (spell.unitTarget.IsImmunedToDamage(spell.m_spellInfo))
|
||||
if (spell.unitTarget.IsImmunedToDamage(caster, spell.m_spellInfo))
|
||||
{
|
||||
hitMask = ProcFlagsHit.Immune;
|
||||
spell.m_damage = 0;
|
||||
|
||||
Reference in New Issue
Block a user