diff options
author | Ovahlord <dreadkiller@gmx.de> | 2024-09-21 14:27:20 +0200 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2024-09-21 14:27:20 +0200 |
commit | 2b89089c50f279d9676f0909d2f1a9b2be292893 (patch) | |
tree | 8e2827423654979451570df42fca7379fe818be5 /src | |
parent | 329b48e853fc1c5318882a7d627b86b1b6b60a40 (diff) |
Scripts/Spells: simplify bitset check in mage Deep Freeze spell script
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_mage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_mage.cpp b/src/server/scripts/Spells/spell_mage.cpp index f8ac3169e92..7fa1ad600e0 100644 --- a/src/server/scripts/Spells/spell_mage.cpp +++ b/src/server/scripts/Spells/spell_mage.cpp @@ -49,7 +49,7 @@ namespace Scripts::Spells::Mage // We check for permanent immunities first by checking for a DB set immunities value. // If that check passes, we will check for the creature's current stun immunity to determine if we may proc or not. if (CreatureImmunities const* immunities = SpellMgr::GetCreatureImmunities(eventInfo.GetProcTarget()->ToCreature()->GetCreatureTemplate()->CreatureImmunitiesId)) - if ((immunities->Mechanic.to_ulong() & (1 << MECHANIC_STUN)) != 0) + if (immunities->Mechanic[MECHANIC_STUN]) if ((eventInfo.GetProcTarget()->GetMechanicImmunityMask() & (1 << MECHANIC_STUN)) != 0) return true; |