Jump to content

[FIX][8368] Improved Moonkin Form


Guest Opterman

Recommended Posts

- Description of the bug:

When you transform into moonkin with this talent , you dont get the haste bonus %.

- For which repository revision was the patch created?

7648

- Is there a thread in the bug report section or at lighthouse?

No, or maybe i havent found it.

- Who has been writing this patch?

Myself

I found in WowHead 3 triggereds spells that applies the aura SPELL_AURA_MELEE_SLOW in area and in the same group of the caster , so i handled it in the dummy aura of this talent

- This is the Fix:

Code:

From a04a58aea2a7fc0524ccd30151a6b5118109af96 Mon Sep 17 00:00:00 2001

From: unknown <Administrator@.(none)>

Date: Sat, 14 Mar 2009 01:45:44 -0700

Subject: [PATCH] Improved Moonkin Form

---

src/game/SpellAuras.cpp | 3 +++

1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp

index c60809e..46365ea 100644

--- a/src/game/SpellAuras.cpp

+++ b/src/game/SpellAuras.cpp

@@ -2289,6 +2289,9 @@ void Aura::HandleAuraDummy(bool apply, bool Real)

((Player*)m_target)->AddSpellMod(m_spellmod, apply);

return;

}

+ case 48384: if(apply)m_target->CastSpell(m_target,50170,true); return; //Rank 1

+ case 48395: if(apply)m_target->CastSpell(m_target,50171,true); return; //Rank 2

+ case 48396: if(apply)m_target->CastSpell(m_target,50172,true); return; //Rank 3

case 61336: // Survival Instincts

{

if(apply)

--

1.6.2.msysgit.0.186.gf7512

Greetings , Opterman

Link to comment
Share on other sites

  • 3 months later...
In rewrited form patch added in [8368]. Anyway thank you for patch :)

you forgot something in void Aura::HandleAuraDummy(bool apply, bool Real) :cool:

            // Improved Moonkin Form
           if(GetSpellProto()->SpellIconID == 2855)
           {
               uint32 spell_id;
               switch(GetId())
               {
                   case 48384: spell_id = 50170;           //Rank 1
                   case 48395: spell_id = 50171;           //Rank 2
                   case 48396: spell_id = 50172;           //Rank 3
                   default:
                       sLog.outError("HandleAuraDummy: Not handled rank of IMF (Spell: %u)",GetId());
                       return;
               }

should be:

            // Improved Moonkin Form
           if(GetSpellProto()->SpellIconID == 2855)
           {
               uint32 spell_id;
               switch(GetId())
               {
                   case 48384: spell_id = 50170;[b]break;[/b]//Rank 1
                   case 48395: spell_id = 50171;[b]break;[/b]//Rank 2
                   case 48396: spell_id = 50172;[b]break;[/b]//Rank 3
                   default:
                       sLog.outError("HandleAuraDummy: Not handled rank of IMF (Spell: %u)",GetId());
                       return;
               }

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