diff options
| author | ariel- <ariel-@users.noreply.github.com> | 2016-11-14 04:02:43 -0300 |
|---|---|---|
| committer | ariel- <ariel-@users.noreply.github.com> | 2016-11-14 04:02:43 -0300 |
| commit | f060efbdb4c51a7fe22cb6a9012cc76477a1f92b (patch) | |
| tree | 9593e6571920881f4774778c9e13920b7668e753 | |
| parent | 20cdf1a830a1a4f612829d134e130b303ecafa89 (diff) | |
Core/Spell: fix typos
| -rw-r--r-- | src/server/game/Spells/SpellInfo.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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) |
