[7701] Move explicit healing repeating code to DealHeal functions. Author: Trazom
--HG-- branch : trunk
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user