mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Merge pull request #4229 from devilcoredev/fix_002
Core/Spells: Fix the spell immunity system to be effect-dependent
This commit is contained in:
@@ -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