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 committed 2012-01-04 13:41:51 -08:00
commit 08bcbc89b0
5 files changed
+35 -7

No files matched your search

+8
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));