From 679f5c51c5af5fa35360722fcb92e670a94229fd Mon Sep 17 00:00:00 2001 From: ariel- Date: Mon, 14 Nov 2016 04:02:43 -0300 Subject: [PATCH] Core/Spell: fix typos --- src/server/game/Spells/SpellInfo.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index 8a171ec686..4236df7f6b 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -2644,14 +2644,14 @@ void SpellInfo::_LoadSpellDiminishInfo() void SpellInfo::_LoadImmunityInfo() { - uint32 schoolImmunityMask = 0; - uint32 applyHarmfulAuraImmunityMask = 0; - uint32 mechanicImmunityMask = 0; - uint32 dispelImmunity = 0; - uint32 damageImmunityMask = 0; - for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i) { + uint32 schoolImmunityMask = 0; + uint32 applyHarmfulAuraImmunityMask = 0; + uint32 mechanicImmunityMask = 0; + uint32 dispelImmunity = 0; + uint32 damageImmunityMask = 0; + int32 miscVal = Effects[i].MiscValue; int32 amount = Effects[i].CalcValue(); @@ -2936,7 +2936,7 @@ void SpellInfo::ApplyAllSpellImmunitiesTo(Unit* target, uint8 effIndex, bool app } } - if (uint32 damageImmunity = immuneInfo->SchoolImmuneMask) + if (uint32 damageImmunity = immuneInfo->DamageSchoolMask) target->ApplySpellImmune(Id, IMMUNITY_DAMAGE, damageImmunity, apply); for (AuraType auraType : immuneInfo->AuraTypeImmune)