Jump to content

[fix] Druid Flight Form (temp?hack?)


Auntie Mangos

Recommended Posts

patch for this on mangos 9789 in my git repo mangos-patches http://github.com/GMHAZE

this patch will add a sql that lets you spawn item that will transform you into a huge bird and you can fly anywhere in WoW also this patch allows flyingf mounts anywhere in the world as well !!! enjoy courtesy of hellscream

You work after alternative way added in [9754] is a trash. :)

And you link: "That page doesn't exist!" :) :)

Link to comment
Share on other sites

  • 39 years later...
  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

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

Fix increase flight speed in druid flight form.

For which repository revision was the patch created?

8649

Who has been writing this patch?

Me

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp 
index 43f9e5a..e5fb51c 100644 
--- a/src/game/SpellAuras.cpp 
+++ b/src/game/SpellAuras.cpp 
@@ -256,7 +256,7 @@ pAuraHandler AuraHandler[TOTAL_AURAS]= 
    &Aura::HandleNoImmediateEffect,                         //203 SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_DAMAGE  implemented in Unit::CalculateMeleeDamage and Unit::CalculateSpellDamage 
    &Aura::HandleNoImmediateEffect,                         //204 SPELL_AURA_MOD_ATTACKER_RANGED_CRIT_DAMAGE implemented in Unit::CalculateMeleeDamage and Unit::CalculateSpellDamage 
    &Aura::HandleNULL,                                      //205 vulnerable to school dmg? 
-    &Aura::HandleNULL,                                      //206 SPELL_AURA_MOD_SPEED_MOUNTED 
+    &Aura::HandleAuraModIncreaseFlightSpeed,                //206 SPELL_AURA_MOD_SPEED_MOUNTED 
    &Aura::HandleAuraModIncreaseFlightSpeed,                //207 SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED 
    &Aura::HandleAuraModIncreaseFlightSpeed,                //208 SPELL_AURA_MOD_SPEED_FLIGHT, used only in spell: Flight Form (Passive) 
    &Aura::HandleAuraModIncreaseFlightSpeed,                //209 SPELL_AURA_MOD_FLIGHT_SPEED_ALWAYS 
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp 
index 7e6f7f9..e3ce0a4 100644 
--- a/src/game/Unit.cpp 
+++ b/src/game/Unit.cpp 
@@ -9950,7 +9950,7 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced) 
            if (IsMounted()) // Use on mount auras 
                main_speed_mod  = GetMaxPositiveAuraModifier(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED); 
            else             // Use not mount (shapeshift for example) auras (should stack) 
-                main_speed_mod  = GetTotalAuraModifier(SPELL_AURA_MOD_SPEED_FLIGHT); 
+                main_speed_mod  = GetTotalAuraModifier(SPELL_AURA_MOD_SPEED_FLIGHT) + GetTotalAuraModifier(SPELL_AURA_MOD_SPEED_MOUNTED); 
            stack_bonus     = GetTotalAuraMultiplier(SPELL_AURA_MOD_FLIGHT_SPEED_ALWAYS); 
            non_stack_bonus = (100.0 + GetMaxPositiveAuraModifier(SPELL_AURA_MOD_FLIGHT_SPEED_NOT_STACK))/100.0f; 
            break;

Link to comment
Share on other sites

Spells hasn't SPELL_AURA_MOD_SPEED_FLIGHT + SPELL_AURA_MOD_SPEED_MOUNTED in same time in their structure. (from spell.dbc)

However is you cast spell causing aura SPELL_AURA_MOD_SPEED_FLIGHT does spell causing aura : SPELL_AURA_MOD_SPEED_MOUNTED is always removed ?

And vice versa ?

I think but I'm not sure...

Link to comment
Share on other sites

1) Spells hasn't SPELL_AURA_MOD_SPEED_FLIGHT + SPELL_AURA_MOD_SPEED_MOUNTED in same time in their structure. (from spell.dbc)

2) However is you cast spell causing aura SPELL_AURA_MOD_SPEED_FLIGHT does spell causing aura : SPELL_AURA_MOD_SPEED_MOUNTED is always removed ?

And vice versa ?

I think but I'm not sure...

1) Yes, it's may be... But what about 2 spells that can have SPELL_AURA_MOD_SPEED_FLIGHT and SPELL_AURA_MOD_SPEED_MOUNTED??? Why you think that SPELL_AURA_MOD_SPEED_MOUNTED will be always removed?

2) SPELL_AURA_MOD_SPEED_FLIGHT + SPELL_AURA_MOD_SPEED_MOUNTED becouse I don't know is SPELL_AURA_MOD_SPEED_FLIGHT use in some spell now or not use. If remove SPELL_AURA_MOD_SPEED_FLIGHT we can break some spell with this aura type.

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...
  • 2 weeks later...
This will no longer work in current revisions. It causes a crash due to the recent modifications in shapeshifting.

I don't think that this patch can be reason for the crash...

I have no idea how this patch can cause crash after last modifications in shapeshifting...

Link to comment
Share on other sites

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