mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[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:
parent
015c6e4019
commit
799919edc5
6 changed files with 17 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue