From bf4909cfb66e15e841528cd3797dc1dc0d8e25e8 Mon Sep 17 00:00:00 2001 From: maximius Date: Sat, 31 Oct 2009 16:35:54 -0700 Subject: *Glyph of Siphon Life, Glyph of Life Tap, Glyph of Ice Lance, thanks Sisif --HG-- branch : trunk --- src/game/Unit.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c3cbb57045f..70ecf782e37 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5547,16 +5547,25 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger triggered_spell_id = 54181; break; } - switch(dummySpell->Id) + switch (dummySpell->Id) { // Siphon Life case 63108: { + // Glyph of Siphon Life + if (HasAura(56216)) + triggerAmount += triggerAmount * 25 / 100; triggered_spell_id = 63106; target = this; basepoints0 = int32(damage*triggerAmount/100); break; } + // Glyph of Life Tap + case 63320: + { + triggered_spell_id = 63321; + break; + } // Nightfall case 18094: case 18095: @@ -9263,7 +9272,13 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3 if (spellProto->SpellIconID == 186) { if (pVictim->HasAuraState(AURA_STATE_FROZEN, spellProto, this)) - DoneTotalMod *= 3.0f; + { + // Glyph of Ice Lance + if (owner->HasAura(56377) && pVictim->getLevel() > owner->getLevel()) + DoneTotalMod *= 4.0f; + else + DoneTotalMod *= 3.0f; + } } // Torment the weak -- cgit v1.2.3