*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:
megamage
2008-12-03 19:42:06 -06:00
parent 48ca955bd3
commit 2d1905c887
4 changed files with 26 additions and 3 deletions

View File

@@ -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;
}