Core/Misc: Minor cleanup and code style fix
This commit is contained in:
@@ -523,7 +523,7 @@ int32 AuraEffect::CalculateAmount(Unit* caster)
|
|||||||
float bonus = 0.8068f;
|
float bonus = 0.8068f;
|
||||||
|
|
||||||
// Borrowed Time
|
// Borrowed Time
|
||||||
if (AuraEffect const* pAurEff = caster->GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_PRIEST, 2899, 1))
|
if (AuraEffect const* pAurEff = caster->GetDummyAuraEffect(SPELLFAMILY_PRIEST, 2899, 1))
|
||||||
bonus += CalculatePctN(1.0f, pAurEff->GetAmount());
|
bonus += CalculatePctN(1.0f, pAurEff->GetAmount());
|
||||||
|
|
||||||
DoneActualBenefit += caster->SpellBaseHealingBonus(GetSpellSchoolMask(m_spellProto)) * bonus;
|
DoneActualBenefit += caster->SpellBaseHealingBonus(GetSpellSchoolMask(m_spellProto)) * bonus;
|
||||||
@@ -5235,7 +5235,7 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool
|
|||||||
if (apply)
|
if (apply)
|
||||||
{
|
{
|
||||||
if (!target->HasAura(48266) && !target->HasAura(63611))
|
if (!target->HasAura(48266) && !target->HasAura(63611))
|
||||||
target->CastSpell(target, 63611, true);
|
target->CastSpell(target, 63611, true, NULL, this);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
target->RemoveAurasDueToSpell(63611);
|
target->RemoveAurasDueToSpell(63611);
|
||||||
|
|||||||
Reference in New Issue
Block a user