Core/Auras: Rename two more aura types

Port From (https://github.com/TrinityCore/TrinityCore/commit/94397ac56cf2db87c14ed39917f6de54e6ce48fb)
This commit is contained in:
hondacrx
2021-02-09 10:37:03 -05:00
parent 4bfc02f1f3
commit 7c43718f1f
2 changed files with 5 additions and 21 deletions
+3 -19
View File
@@ -540,13 +540,6 @@ namespace Game.Spells
GetBase().CallScriptEffectUpdatePeriodicHandlers(this);
}
bool CanPeriodicTickCrit(Unit caster)
{
Cypher.Assert(caster);
return caster.HasAuraTypeWithAffectMask(AuraType.AbilityPeriodicCrit, m_spellInfo);
}
public bool IsAffectingSpell(SpellInfo spell)
{
if (spell == null)
@@ -5461,10 +5454,7 @@ namespace Game.Spells
}
}
bool crit = false;
if (CanPeriodicTickCrit(caster))
crit = RandomHelper.randChance(isAreaAura ? caster.GetUnitSpellCriticalChance(target, m_spellInfo, m_spellInfo.GetSchoolMask()) : m_critChance);
bool crit = RandomHelper.randChance(isAreaAura ? caster.GetUnitSpellCriticalChance(target, m_spellInfo, m_spellInfo.GetSchoolMask()) : m_critChance);
if (crit)
damage = caster.SpellCriticalDamageBonus(m_spellInfo, damage, target);
@@ -5551,10 +5541,7 @@ namespace Game.Spells
}
}
bool crit = false;
if (CanPeriodicTickCrit(caster))
crit = RandomHelper.randChance(isAreaAura ? caster.GetUnitSpellCriticalChance(target, m_spellInfo, m_spellInfo.GetSchoolMask()) : m_critChance);
bool crit = RandomHelper.randChance(isAreaAura ? caster.GetUnitSpellCriticalChance(target, m_spellInfo, m_spellInfo.GetSchoolMask()) : m_critChance);
if (crit)
damage = caster.SpellCriticalDamageBonus(m_spellInfo, damage, target);
@@ -5694,10 +5681,7 @@ namespace Game.Spells
damage = (int)target.SpellHealingBonusTaken(caster, GetSpellInfo(), (uint)damage, DamageEffectType.DOT, GetSpellEffectInfo(), GetBase().GetStackAmount());
}
bool crit = false;
if (CanPeriodicTickCrit(caster))
crit = RandomHelper.randChance(isAreaAura ? caster.GetUnitSpellCriticalChance(target, m_spellInfo, m_spellInfo.GetSchoolMask()) : m_critChance);
bool crit = RandomHelper.randChance(isAreaAura ? caster.GetUnitSpellCriticalChance(target, m_spellInfo, m_spellInfo.GetSchoolMask()) : m_critChance);
if (crit)
damage = caster.SpellCriticalHealingBonus(m_spellInfo, damage, target);