Core/Spells: corrected a check when retrieving mechanic immunities in cast and channel packets and fixed a typo in SMSG_CHANNEL_START that was overwriting school immunities with mechanic immunities instead

This commit is contained in:
Ovahlord committed 2021-04-27 15:42:50 +02:00
1 parent 3da9d31690
commit bf28dfcf0c
2 files changed
+9 -4

No files matched your search

+1 -1
View File
@@ -4903,7 +4903,7 @@ void Spell::SendChannelStart(uint32 duration)
{
packet.InterruptImmunities.emplace();
packet.InterruptImmunities->SchoolImmunities = schoolImmunityMask; // CastSchoolImmunities
packet.InterruptImmunities->SchoolImmunities = mechanicImmunityMask; // CastImmunities
packet.InterruptImmunities->Immunities = mechanicImmunityMask; // CastImmunities
}
if (m_spellInfo->HasAttribute(SPELL_ATTR8_HEAL_PREDICTION))