*Fix bladestorm.
--HG-- branch : trunk
This commit is contained in:
1 parent
2105aa45d5
commit
2b9d09255e
3 files changed
+14
-6
No files matched your search
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user