Jump to content

[fix] Leper Gnome Costume


Recommended Posts

Posted

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:

Posted
There are 2 other spells with the same name if you look around a bit. You have to select which spell to cast by gender.

Indeed ^^

I have rewrite the patch and it's working perfectly :)

;)

See the first post :)

Posted

The script effect would now work as intended, but another problem appears, that makes the female spell work the same way as the male one. This is related to transform aura handling, and needs some generic code to be added. Currently i'm working on it, but slowly as i don't have too much time :(

  • 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