Jump to content

[fix] Leper Gnome Costume


Guest Morphau

Recommended Posts

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

The patch fix the spell for the Leper Gnome Costume

For which repository revision was the patch created?

For the revision 9357

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

None

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

Me with my litlle brain ^^

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index c1723f7..00887b2 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -4982,5 +4982,21 @@ void Spell::EffectScriptEffect(uint32 effIndex)
               case 24590:
                   unitTarget->RemoveSingleSpellAurasFromStack(24575);
                   return;
+                // Hallowed Wand - Leper Gnome
+                case 24719:
+                {
+                   if(!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
+                   return;
+
+                   switch(unitTarget->getGender())
+                    {
+                        case GENDER_MALE:
+                            unitTarget->CastSpell(unitTarget,24712,true);
+                            return;
+                        case GENDER_FEMALE:
+                            unitTarget->CastSpell(unitTarget,24713,true);
+                            return;
+                    }
+                }
                   // PX-238 Winter Wondervolt TRAP
               case 26275:

Link to comment
Share on other sites

  • 11 months later...
×
×
  • 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