From e4ed2ce29cd452e2ea093993f7788805c9d6e892 Mon Sep 17 00:00:00 2001 From: KAPATEJIb Date: Mon, 21 Sep 2009 02:10:24 +0400 Subject: [PATCH] [8518] Implement glyph 42745 Signed-off-by: VladimirMangos --- src/game/Unit.cpp | 12 +++++++++++- src/shared/revision_nr.h | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index ef71b430d..6ff290eaf 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8222,7 +8222,17 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3 if (spellProto->SpellIconID == 186) { if (pVictim->isFrozen()) - DoneTotalMod *= 3.0f; + { + float multiplier = 3.0f; + + // if target have higher level + if (pVictim->getLevel() > getLevel()) + // Glyph of Ice Lance + if (Aura* glyph = GetDummyAura(56377)) + multiplier = glyph->GetModifier()->m_amount; + + DoneTotalMod *= multiplier; + } } // Torment the weak affected (Arcane Barrage, Arcane Blast, Frostfire Bolt, Arcane Missiles, Fireball) if ((spellProto->SpellFamilyFlags & UI64LIT(0x0000900020200021)) && diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 82a03172c..a268ba1dc 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8517" + #define REVISION_NR "8518" #endif // __REVISION_NR_H__