Jump to content

[11629] Wolfshead Helm Energize Effect


Guest DaC

Recommended Posts

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

Wolfshead Helm (Item 8345) did not provide energize effect - missing dummy

For which repository revision was the patch created?

MaNGOS One - latest revision

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

me

Implementing DummyEffect for Energizing Effect of spell.

From 7b1bb8540a27a9e0b68f0dfd13903c38cfeddb9b Mon Sep 17 00:00:00 2001
From: DaC <[email protected]>
Date: Sat, 11 Jun 2011 19:18:49 +0200
Subject: [PATCH] Wolfshead Helm Energize Effect[2]

---
src/game/SpellEffects.cpp |    6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index f134b6c..c1097ca 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -779,6 +779,12 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
                    m_caster->CastSpell(m_caster, spell_id, true, NULL);
                    return;
                }
+                case 17770:                                 // Wolfshead Helm Energy
+                {
+                    if (m_caster)
+                        m_caster->CastSpell(m_caster, 29940, true, NULL);
+                    return;
+                }
                case 17950:                                 // Shadow Portal
                {
                    if (!unitTarget)
-- 
1.7.0.2.msysgit.0

regards, DaC

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