[7701] Move explicit healing repeating code to DealHeal functions. Author: Trazom

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-23 22:02:41 -05:00
parent bd56af1294
commit 892053938e
5 changed files with 27 additions and 41 deletions
+2 -5
View File
@@ -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: