Core/Auras: removed obsolete crit chance member

This commit is contained in:
Ovahlord
2019-11-09 01:11:46 +01:00
parent c670bd4748
commit 53d2ecf123
3 changed files with 2 additions and 8 deletions

View File

@@ -440,9 +440,8 @@ pAuraEffectHandler AuraEffectHandler[TOTAL_AURAS]=
AuraEffect::AuraEffect(Aura* base, uint8 effIndex, int32 *baseAmount, Unit* caster):
m_base(base), m_spellInfo(base->GetSpellInfo()),
m_baseAmount(baseAmount ? *baseAmount : m_spellInfo->Effects[effIndex].BasePoints),
m_bonusAmount(0), m_critChance(0.0f), m_donePct(1.0f),
m_spellmod(nullptr), m_periodicTimer(0), m_tickNumber(0), m_effIndex(effIndex),
m_canBeRecalculated(true), m_isPeriodic(false)
m_bonusAmount(0), m_donePct(1.0f), m_spellmod(nullptr), m_periodicTimer(0), m_tickNumber(0),
m_effIndex(effIndex), m_canBeRecalculated(true), m_isPeriodic(false)
{
CalculatePeriodic(caster, true, false);

View File

@@ -75,8 +75,6 @@ class TC_GAME_API AuraEffect
void SetBonusAmount(int32 val) { m_bonusAmount = val; }
int32 GetBonusAmount() const { return m_bonusAmount; }
void SetCritChance(float val) { m_critChance = val; }
float GetCritChance() const { return m_critChance; }
void SetDonePct(float val) { m_donePct = val; }
float GetDonePct() const { return m_donePct; }
@@ -110,7 +108,6 @@ class TC_GAME_API AuraEffect
int32 m_amount;
int32 m_bonusAmount;
float m_critChance;
float m_donePct;
SpellModifier* m_spellmod;

View File

@@ -693,7 +693,6 @@ class spell_dk_pestilence : public SpellScript
if (AuraEffect* aurEffOld = aurOld->GetEffect(EFFECT_0))
{
float donePct = aurEffOld->GetDonePct();
float critChance = aurEffOld->GetCritChance();
caster->CastSpell(hitUnit, SPELL_DK_BLOOD_PLAGUE, true); // Spread the disease to hitUnit.
@@ -701,7 +700,6 @@ class spell_dk_pestilence : public SpellScript
{
if (AuraEffect* aurEffNew = aurNew->GetEffect(EFFECT_0))
{
aurEffNew->SetCritChance(critChance); // Blood Plague can crit if caster has T9.
aurEffNew->SetDonePct(donePct);
aurEffNew->SetBonusAmount(caster->SpellDamageBonusDone(hitUnit, aurEffNew->GetSpellInfo(), 0, DOT, aurEffNew->GetEffIndex()));
}