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
|
|
@ -1189,7 +1189,7 @@ void Unit::CalculateMeleeDamage(Unit *pVictim, uint32 damage, CalcDamageInfo *da
|
|||
}
|
||||
|
||||
// Physical Immune check
|
||||
if(damageInfo->target->IsImmunedToDamage(SpellSchoolMask(damageInfo->damageSchoolMask),true))
|
||||
if(damageInfo->target->IsImmunedToDamage(SpellSchoolMask(damageInfo->damageSchoolMask)))
|
||||
{
|
||||
damageInfo->HitInfo |= HITINFO_NORMALSWING;
|
||||
damageInfo->TargetState = VICTIMSTATE_IS_IMMUNE;
|
||||
|
|
@ -2391,7 +2391,7 @@ SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool
|
|||
return SPELL_MISS_EVADE;
|
||||
|
||||
// Check for immune (use charges)
|
||||
if (pVictim->IsImmunedToSpell(spell,true))
|
||||
if (pVictim->IsImmunedToSpell(spell))
|
||||
return SPELL_MISS_IMMUNE;
|
||||
|
||||
// All positive spells can`t miss
|
||||
|
|
@ -2400,7 +2400,7 @@ SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool
|
|||
return SPELL_MISS_NONE;
|
||||
|
||||
// Check for immune (use charges)
|
||||
if (pVictim->IsImmunedToDamage(GetSpellSchoolMask(spell),true))
|
||||
if (pVictim->IsImmunedToDamage(GetSpellSchoolMask(spell)))
|
||||
return SPELL_MISS_IMMUNE;
|
||||
|
||||
// Try victim reflect spell
|
||||
|
|
@ -7548,7 +7548,7 @@ int32 Unit::SpellBaseHealingBonusForVictim(SpellSchoolMask schoolMask, Unit *pVi
|
|||
return AdvertisedBenefit;
|
||||
}
|
||||
|
||||
bool Unit::IsImmunedToDamage(SpellSchoolMask shoolMask, bool useCharges)
|
||||
bool Unit::IsImmunedToDamage(SpellSchoolMask shoolMask)
|
||||
{
|
||||
//If m_immuneToSchool type contain this school type, IMMUNE damage.
|
||||
SpellImmuneList const& schoolList = m_spellImmune[IMMUNITY_SCHOOL];
|
||||
|
|
@ -7565,7 +7565,7 @@ bool Unit::IsImmunedToDamage(SpellSchoolMask shoolMask, bool useCharges)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool Unit::IsImmunedToSpell(SpellEntry const* spellInfo, bool useCharges)
|
||||
bool Unit::IsImmunedToSpell(SpellEntry const* spellInfo)
|
||||
{
|
||||
if (!spellInfo)
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue