Merge pull request #4229 from devilcoredev/fix_002

Core/Spells: Fix the spell immunity system to be effect-dependent
This commit is contained in:
Shocker
2012-01-04 13:41:51 -08:00
5 changed files with 35 additions and 7 deletions

View File

@@ -1755,6 +1755,14 @@ Mechanics SpellInfo::GetEffectMechanic(uint8 effIndex) const
return MECHANIC_NONE;
}
bool SpellInfo::HasAnyEffectMechanic() const
{
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
if (Effects[i].Mechanic)
return true;
return false;
}
uint32 SpellInfo::GetDispelMask() const
{
return GetDispelMask(DispelType(Dispel));