aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-23 22:02:41 -0500
committermegamage <none@none>2009-04-23 22:02:41 -0500
commit892053938ee612588b7662e681cedf8c758b469a (patch)
tree5b8c1f1c4e329ae81d29eace39683ef3dc7b2f73 /src/game/SpellAuras.cpp
parentbd56af12949ac649fea185e3481d7ca05bb25660 (diff)
[7701] Move explicit healing repeating code to DealHeal functions. Author: Trazom
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r--src/game/SpellAuras.cpp7
1 files changed, 2 insertions, 5 deletions
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: