*Add new immune type: IMMUNITY_ID. This is usually done using dummy auras.
*Let cloak of shadows immunes to flare. --HG-- branch : trunk
This commit is contained in:
1 parent
48ca955bd3
commit
2d1905c887
4 files changed
+26
-3
No files matched your search
@@ -9407,6 +9407,15 @@ bool Unit::IsImmunedToSpell(SpellEntry const* spellInfo, bool useCharges)
|
||||
}
|
||||
}
|
||||
|
||||
SpellImmuneList const& idList = m_spellImmune[IMMUNITY_ID];
|
||||
for(SpellImmuneList::const_iterator itr = idList.begin(); itr != idList.end(); ++itr)
|
||||
{
|
||||
if(itr->type == spellInfo->Id)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user