Jump to content

[Fix][8942] Blessing of Sancutary


Auntie Mangos

Recommended Posts

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

Patch adds +10% strenght and +10% stamina effect to Blessing of Sanctuary

For which repository revision was the patch created?

Rev. 8918

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

http://getmangos.eu/community/viewtopic.php?id=11152

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

Myself

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index b0efd81..df84f3f 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -2225,6 +2236,12 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
                if (Unit* caster = GetCaster())
                    caster->CastSpell(caster, 13138, true, NULL, this);
                return;
+			case 20911:                                        // Blessing of Sanctuary
+			case 25899:                                        // Greater Blessing of Sanctuary
+			{
+				m_target->CastSpell(m_target, 67480, true, NULL, this);
+				return;
+			}
            case 39850:                                     // Rocket Blast
                if(roll_chance_i(20))                       // backfire stun
                    m_target->CastSpell(m_target, 51581, true, NULL, this);
@@ -2314,6 +2331,12 @@ void Aura::HandleAuraDummy(bool apply, bool Real)

        switch(GetId())
        {
+			case 20911:                                        // Blessing of Sanctuary
+			case 25899:                                        // Greater Blessing of Sanctuary
+			{
+				m_target->RemoveAurasDueToSpell(67480);
+				return;
+			}
            case 36730:                                     // Flame Strike
            {
                m_target->CastSpell(m_target, 36731, true, NULL, this);

Link to comment
Share on other sites

  • 39 years later...
Guest
This topic is now closed to further replies.
×
×
  • 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