aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellMgr.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-02-13 00:46:42 +0100
committerShauren <shauren.trinity@gmail.com>2024-02-13 00:46:42 +0100
commited0b621d1569a14174a9802027b68dbe4329da69 (patch)
tree1e6211d6f30dd433840ddd611d9fd8ffbe3a957d /src/server/game/Spells/SpellMgr.cpp
parent96191b9ce259df7a234c55d06b97bb5b8ee0848f (diff)
Core/Auras: Allow SPELL_AURA_MECHANIC_IMMUNITY_MASK to apply aoe/chain targeting immunity
Diffstat (limited to 'src/server/game/Spells/SpellMgr.cpp')
-rw-r--r--src/server/game/Spells/SpellMgr.cpp6
1 files changed, 4 insertions, 2 deletions
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);