diff options
author | maximius <none@none> | 2009-10-31 16:35:54 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-10-31 16:35:54 -0700 |
commit | bf4909cfb66e15e841528cd3797dc1dc0d8e25e8 (patch) | |
tree | dc7d29baa147bbcfb59eaaf537b8a90cf1c362ae /src | |
parent | 548ba65cf2df2b7c69d1ea24b425235d31e46bdf (diff) |
*Glyph of Siphon Life, Glyph of Life Tap, Glyph of Ice Lance, thanks Sisif
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
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 |