[9720] Implement Glyph of Siphon Life and fix Siphon Life proc

Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
SKW 2010-04-10 10:01:01 +03:00 committed by Laise
parent 117bc1e836
commit 8f18a0d920
6 changed files with 15 additions and 3 deletions

View file

@ -5823,6 +5823,12 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
// Siphon Life
case 63108:
{
if (triggeredByAura->GetEffIndex() != EFFECT_INDEX_0)
return false;
if (Aura *aur = GetAura(56216, EFFECT_INDEX_0))
triggerAmount += triggerAmount * aur->GetModifier()->m_amount / 100;
basepoints[0] = int32(damage * triggerAmount / 100);
triggered_spell_id = 63106;
break;