Jump to content

Recommended Posts

Posted

Hey guys,

here comes just a little patch to fix a custom behaviour of the paladins Blessing of Kings and Blessign of sanctuary. The stat percent aura of sanctuary (sta and str) should NOT be applied when BoK is already on this player.

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index f2641e5..a5e29a5 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -3023,6 +3023,10 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
                case 20911:                                 // Blessing of Sanctuary
                case 25899:                                 // Greater Blessing of Sanctuary
                {
+                    // check for (Greater) Blessing of Kings
+                    if (target->GetAura(SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE, SPELLFAMILY_PALADIN, UI64LIT(0x0000000001000000)))
+                        break;
+
                    if (apply)
                        target->CastSpell(target, 67480, true, NULL, this);
                    else
@@ -6975,6 +6979,24 @@ void Aura::HandleSpellSpecificBoosts(bool apply)
                else if (!apply)
                    caster->RemoveAurasDueToSpell(64364);
            }
+            if (m_spellProto->SpellFamilyFlags &            // (Greater) Blessing of Kings
+                UI64LIT(0x0000000001000000))
+            {
+                // check for (Greater) Blessing of Sanctuary
+                if (!m_target->GetAura(SPELL_AURA_DUMMY, SPELLFAMILY_PALADIN, UI64LIT(0x0000000010000000))
+                    break;
+
+                if (!apply)
+                {
+                    cast_at_remove = true;
+                    spellId1 = 67480;
+                }
+                else
+                    m_target->RemoveAurasDueToSpell(67480);
+
+                break;
+            }
+
            if (m_spellProto->Id == 31884)                  // Avenging Wrath
            {
                if(!apply)

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