aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-04-09 18:49:48 +0200
committerQAston <none@none>2009-04-09 18:49:48 +0200
commitba4e54f2f7d411eb60c8927e358d2835019a657a (patch)
tree470d1233b882ff79e657b9dc6d7ffab627543d16 /src/game/Unit.cpp
parent2b9d09255ea80ae1fbf345368d24128318ed3a0f (diff)
*Allow to use ice block while affected by CC and fix compile warning.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 46c93c97ccb..eb5bd306511 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -9137,7 +9137,7 @@ bool Unit::IsImmunedToSpell(SpellEntry const* spellInfo)
SpellImmuneList const& mechanicList = m_spellImmune[IMMUNITY_MECHANIC];
for(SpellImmuneList::const_iterator itr = mechanicList.begin(); itr != mechanicList.end(); ++itr)
{
- if(itr->type & (1<<(spellInfo->Mechanic-1)))
+ if(itr->type & (1<<spellInfo->Mechanic))
{
return true;
}
@@ -9170,7 +9170,7 @@ bool Unit::IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index) con
{
SpellImmuneList const& mechanicList = m_spellImmune[IMMUNITY_MECHANIC];
for (SpellImmuneList::const_iterator itr = mechanicList.begin(); itr != mechanicList.end(); ++itr)
- if(itr->type & 1<<(spellInfo->EffectMechanic[index]-1))
+ if(itr->type & 1<<(spellInfo->EffectMechanic[index]))
return true;
}