Jump to content

[Spell] Magic Rooster


Guest Shin Darth

Recommended Posts

Core: 9134

UDB: 386

ScriptDev2: 1542

ACID: 3.0.2

The mount Magic Rooster (spell 65917) is bugged:

- It should be 100% speed, but is 0%

- It can be mounted while is already mounted an other mount

- If Magic Rooster and an other mount are mounted, the player can dismount Magic Rooster and get the same speed of the other mount without being mounted (so the player can cast with the mount speed: bugabusing)

Link to comment
Share on other sites

Try this if you know that it uses only one mount creature id:

  src/game/SpellEffects.cpp |    1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 0e437fd..ddd15a6 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -5282,6 +5282,7 @@ void Spell::EffectScriptEffect(uint32 effIndex)
                        ((Player*)m_caster)->learnSpell(discoveredSpell, false);
                    return;
                }
+                case 65917: m_caster->CastSpell(m_caster, 66122, true); return;
            }
            break;
        }


If it uses random then this one would work:

  src/game/SpellEffects.cpp |    7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 0e437fd..6d9a65c 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -5282,6 +5282,13 @@ void Spell::EffectScriptEffect(uint32 effIndex)
                        ((Player*)m_caster)->learnSpell(discoveredSpell, false);
                    return;
                }
+                case 65917: // Magic Rooster
+                {
+                    uint32 spells[3] = { 66122, 66123, 66124 };
+                    uint8 random = urand(0,2);
+                    m_caster->CastSpell(m_caster, spells[random], true);
+                    return;
+                }
            }
            break;
        }


Dunno which is correct there are 3 spells for it...

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