From ed0b621d1569a14174a9802027b68dbe4329da69 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 13 Feb 2024 00:46:42 +0100 Subject: Core/Auras: Allow SPELL_AURA_MECHANIC_IMMUNITY_MASK to apply aoe/chain targeting immunity --- src/server/game/Spells/SpellMgr.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/server/game/Spells/SpellMgr.cpp') diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index 16b010ba2eb..fe31c6e00ea 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -4957,8 +4957,10 @@ void SpellMgr::LoadSpellInfoImmunities() immunities.School = school; immunities.DispelType = dispelType; immunities.Mechanic = mechanics; - immunities.ImmuneAoE = fields[6].GetBool(); - immunities.ImmuneChain = fields[7].GetBool(); + if (fields[6].GetBool()) + immunities.Other |= SpellOtherImmunity::AoETarget; + if (fields[7].GetBool()) + immunities.Other |= SpellOtherImmunity::ChainTarget; if (immunities.School.to_ullong() != school) TC_LOG_ERROR("sql.sql", "Invalid value in `SchoolMask` {} for creature immunities {}, truncated", school, id); -- cgit v1.2.3