[9153] Use in code heal amount calculation for 20165.

Thanks to MrLama for small cleanups and patch updating.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
KAPATEJIb 2010-01-12 05:53:29 +03:00 committed by VladimirMangos
parent 015c6e4019
commit 799919edc5
6 changed files with 17 additions and 5 deletions

View file

@ -2643,8 +2643,16 @@ void Spell::EffectHeal( uint32 /*i*/ )
int32 addhealth = damage;
// Seal of Light proc
if (m_spellInfo->Id == 20167)
{
float ap = caster->GetTotalAttackPowerValue(BASE_ATTACK);
int32 holy = caster->SpellBaseHealingBonus(GetSpellSchoolMask(m_spellInfo)) +
caster->SpellBaseHealingBonusForVictim(GetSpellSchoolMask(m_spellInfo), unitTarget);
addhealth += int32(ap * 0.15) + int32(holy * 15 / 100);
}
// Vessel of the Naaru (Vial of the Sunwell trinket)
if (m_spellInfo->Id == 45064)
else if (m_spellInfo->Id == 45064)
{
// Amount of heal - depends from stacked Holy Energy
int damageAmount = 0;