Jump to content

[9570][fix]Glyph of Smite


Recommended Posts

Posted

What bug does the patch fix? What features does the patch add?

fixes damage increase for Smite with Glyph of Smite and Holy Fire on target

For which repository revision was the patch created?

9531

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

https://mangos.lighthouseapp.com/projects/18208/tickets/433-glyph-priest-glyph-of-smite

Who has been writing this patch? Please include either forum user names or email addresses.

me

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 71c9642..d6d1adb 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -9326,6 +9326,18 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
            }
            break;
        }
+        case SPELLFAMILY_PRIEST:
+        {
+            // Glyph of Smite
+            if (spellProto->SpellFamilyFlags & UI64LIT(0x00000080))
+            {
+                // Holy Fire
+                if (pVictim->GetAura(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_PRIEST, UI64LIT(0x00100000), NULL))
+                    if (Aura *aur = GetAura(55692, EFFECT_INDEX_0))
+                        DoneTotalMod *= (aur->GetModifier()->m_amount+100.0f) / 100.0f;
+            }
+            break;
+        }
        case SPELLFAMILY_DEATHKNIGHT:
        {
            // Icy Touch, Howling Blast and Frost Strike

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use