From f060efbdb4c51a7fe22cb6a9012cc76477a1f92b Mon Sep 17 00:00:00 2001 From: ariel- Date: Mon, 14 Nov 2016 04:02:43 -0300 Subject: Core/Spell: fix typos --- src/server/game/Spells/SpellInfo.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index 6406cf805d9..a7b86d2d433 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -2487,14 +2487,14 @@ int32 SpellInfo::GetDiminishingReturnsLimitDuration(bool triggered) const 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(); @@ -2776,7 +2776,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) -- cgit v1.2.3