Jump to content

[10548][Patch] Empower Rune Weapon


Auntie Mangos

Recommended Posts

This patch implements the rune activation part of spell 47568

Depends on my 2 other patches:

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

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

For Rev. 10408.

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 3ad5b93..b0affd0 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -2712,6 +2712,19 @@ void Spell::EffectTriggerSpell(SpellEffectIndex effIndex)
                pet->CastSpell(pet, 28305, true);
            return;
        }
+        // Empower Rune Weapon
+        case 53258:
+        {
+            // remove cooldown of all runes and send update to client
+            // +25 runic power already added in Spell::CheckOrTakeRunePower() in Spell::cast()
+            if(m_caster->GetTypeId() == TYPEID_PLAYER)
+            {
+                for(uint32 i = 0; i < MAX_RUNES; i++)
+                    ((Player*)m_caster)->SetRuneCooldown(i, 0);
+                ((Player*)m_caster)->ResyncRunes(MAX_RUNES);
+            }
+            return;
+        }
    }

    // normal case

Link to comment
Share on other sites

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