From 892053938ee612588b7662e681cedf8c758b469a Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 23 Apr 2009 22:02:41 -0500 Subject: [7701] Move explicit healing repeating code to DealHeal functions. Author: Trazom --HG-- branch : trunk --- src/game/SpellAuras.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/game/SpellAuras.cpp') diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index a41e791c38a..d476f7dcd91 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -1612,8 +1612,7 @@ void AuraEffect::TriggerSpell() case 23493: { int32 heal = caster->GetMaxHealth() / 10; - int32 gain = caster->ModifyHealth( heal ); - caster->SendHealSpellLog(caster, 23493, heal, false, &gain); + caster->DealHeal(caster, heal, auraSpellInfo); int32 mana = caster->GetMaxPower(POWER_MANA); if (mana) @@ -5853,10 +5852,8 @@ void AuraEffect::PeriodicTick() // Don't apply heal mods for this aura uint32 heal = uint32(new_damage * multiplier);//pCaster->SpellHealingBonus(pCaster, spellProto, uint32(new_damage * multiplier), DOT, stackAmount); - int32 gain = pCaster->ModifyHealth(heal); + int32 gain = pCaster->DealHeal(pCaster, heal, spellProto); pCaster->getHostilRefManager().threatAssist(pCaster, gain * 0.5f, spellProto); - - pCaster->SendHealSpellLog(pCaster, spellProto->Id, heal,false, &gain); break; } case SPELL_AURA_PERIODIC_HEAL: -- cgit v1.2.3