From 64744793348d5fc7c224dfdfd697672ace660cac Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Thu, 22 Sep 2022 15:10:16 +0200 Subject: [PATCH] Core/Spells: fixed a regression which was causing spell_start packets to send wrong immunities --- src/server/game/Spells/Spell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index e5fce94b20..5b155c52ff 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -4394,7 +4394,7 @@ void Spell::SendSpellStart() if (Unit* unitCaster = m_caster->ToUnit()) { schoolImmunityMask = m_casttime != 0 ? unitCaster->GetSchoolImmunityMask() : 0; - mechanicImmunityMask = m_casttime != 0 ? unitCaster->GetMechanicImmunityMask() : 0; + mechanicImmunityMask = m_casttime != 0 ? m_spellInfo->GetMechanicImmunityMask(unitCaster) : 0; } if (schoolImmunityMask || mechanicImmunityMask)