From 6b997f35afc38026993240e35d08de3fb9ef36ed Mon Sep 17 00:00:00 2001 From: Anubisss Date: Tue, 29 Dec 2009 23:53:00 +0100 Subject: Implement Glyph of Divine Storm. Based on zajast's patch. --HG-- branch : trunk --- src/game/Unit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index f846f9f6a32..04214762148 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -658,7 +658,8 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa if (spellProto->SpellFamilyName == SPELLFAMILY_PALADIN && spellProto->SpellFamilyFlags[1] & 0x20000) { Unit *pRaidGrpMember = GetNextRandomRaidMemberOrPet(30.0f); - int32 divineDmg = damage / 4; + + int32 divineDmg = damage * (25 + (HasAura(63220) ? 15 : 0)) / 100; //25%, if has Glyph of Divine Storm -> 40% if (!pRaidGrpMember) pRaidGrpMember = this; -- cgit v1.2.3