mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
*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:
@@ -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