mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[7701] Move explicit healing repeating code to DealHeal functions.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
adf9eb942d
commit
7c0201f834
6 changed files with 24 additions and 31 deletions
|
|
@ -1431,8 +1431,7 @@ void Aura::TriggerSpell()
|
|||
case 23493:
|
||||
{
|
||||
int32 heal = caster->GetMaxHealth() / 10;
|
||||
caster->ModifyHealth( heal );
|
||||
caster->SendHealSpellLog(caster, 23493, heal);
|
||||
caster->DealHeal(caster, heal, auraSpellInfo);
|
||||
|
||||
int32 mana = caster->GetMaxPower(POWER_MANA);
|
||||
if (mana)
|
||||
|
|
@ -5876,10 +5875,8 @@ void Aura::PeriodicTick()
|
|||
|
||||
uint32 heal = 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);
|
||||
break;
|
||||
}
|
||||
case SPELL_AURA_PERIODIC_HEAL:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue