mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[7023] Remove not used useCharges for IsImmunedToSpell/IsImmunedToDamage
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
a865eb6010
commit
4b9af01d42
10 changed files with 19 additions and 19 deletions
|
|
@ -1536,7 +1536,7 @@ void Creature::Respawn()
|
|||
}
|
||||
}
|
||||
|
||||
bool Creature::IsImmunedToSpell(SpellEntry const* spellInfo, bool useCharges)
|
||||
bool Creature::IsImmunedToSpell(SpellEntry const* spellInfo)
|
||||
{
|
||||
if (!spellInfo)
|
||||
return false;
|
||||
|
|
@ -1544,7 +1544,7 @@ bool Creature::IsImmunedToSpell(SpellEntry const* spellInfo, bool useCharges)
|
|||
if (GetCreatureInfo()->MechanicImmuneMask & (1 << (spellInfo->Mechanic - 1)))
|
||||
return true;
|
||||
|
||||
return Unit::IsImmunedToSpell(spellInfo, useCharges);
|
||||
return Unit::IsImmunedToSpell(spellInfo);
|
||||
}
|
||||
|
||||
bool Creature::IsImmunedToSpellEffect(uint32 effect, uint32 mechanic) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue