Merge pull request #4229 from devilcoredev/fix_002
Core/Spells: Fix the spell immunity system to be effect-dependent
This commit is contained in:
commit
08bcbc89b0
5 files changed
+35
-7
No files matched your search
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user