Core/Auras: Rename two more aura types
Port From (https://github.com/TrinityCore/TrinityCore/commit/94397ac56cf2db87c14ed39917f6de54e6ce48fb)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user