diff options
| author | QAston <none@none> | 2009-04-09 18:24:01 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-04-09 18:24:01 +0200 |
| commit | 2b9d09255ea80ae1fbf345368d24128318ed3a0f (patch) | |
| tree | 7e3dee6a27bd82b665cc6d4b1838f786a0d80239 /src/game/Unit.cpp | |
| parent | 2105aa45d54ceb1b91eccc8abd2a20c346a7bc6c (diff) | |
*Fix bladestorm.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index eb5bd306511..46c93c97ccb 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)) + if(itr->type & (1<<(spellInfo->Mechanic-1))) { 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])) + if(itr->type & 1<<(spellInfo->EffectMechanic[index]-1)) return true; } |
