Jump to content

[Fix] Seals of the Pure


Guest MrLama

Recommended Posts

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

Increases the damage done by your Seal of Righteousness by 15%. Missing DBC entry workaround.

For which repository revision was the patch created?

8994

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

---

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

Me

Link to patch:

http://pastebin.com/m483951c0

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 186d538..2651b7e 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -1376,6 +1376,8 @@ void Aura::HandleAddModifier(bool apply, bool Real)
    if(m_modifier.m_miscvalue >= MAX_SPELLMOD)
        return;

+	uint64 modMaskAddition = 0;
+	uint64 modMask2Addition = 0;
    if (apply)
    {
        // Add custom charges for some mod aura
@@ -1392,6 +1394,14 @@ void Aura::HandleAddModifier(bool apply, bool Real)
            case 57761:    // Fireball!
                SetAuraCharges(1);
                break;
+            case 20224:    // Seals of the Pure (Rank 1)
+            case 20225:    // Seals of the Pure (Rank 2)
+            case 20330:    // Seals of the Pure (Rank 3)
+            case 20331:    // Seals of the Pure (Rank 4)
+            case 20332:    // Seals of the Pure (Rank 5)
+				if( m_effIndex == 0 )
+					modMaskAddition = UI64LIT(0x20000000) << 32;
+                break;
        }

        SpellModifier *mod = new SpellModifier;
@@ -1410,8 +1420,8 @@ void Aura::HandleAddModifier(bool apply, bool Real)
                return;
        }

-        mod->mask = (uint64)ptr[0] | (uint64)ptr[1]<<32;
-        mod->mask2= (uint64)ptr[2];
+        mod->mask = (uint64)ptr[0] | (uint64)ptr[1]<<32  | modMaskAddition;
+        mod->mask2 = (uint64)ptr[2] | modMask2Addition;

        // prevent expire spell mods with (charges > 0 && m_stackAmount > 1)
        // all this spell expected expire not at use but at spell proc event check

Link to comment
Share on other sites

×
×
  • 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