From 11654425058bcddad0036cc96785556720ceaab5 Mon Sep 17 00:00:00 2001 From: Bobblybook Date: Sat, 19 Oct 2024 18:16:44 +1100 Subject: [PATCH] Winged Steed of the Ebon Blade northrend fix Winged Steed of the Ebon Blade gets incorrectly categorised as a ground mount, causes issues and bots will not be able to ground mount if they have this mount in the account spellbook. There may by other scaling mounts that have the same issue, either we blacklist them all or figure out a way to correctly read them as flyers. --- src/strategy/actions/CheckMountStateAction.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/strategy/actions/CheckMountStateAction.cpp b/src/strategy/actions/CheckMountStateAction.cpp index ce223d16..0300827b 100644 --- a/src/strategy/actions/CheckMountStateAction.cpp +++ b/src/strategy/actions/CheckMountStateAction.cpp @@ -239,9 +239,16 @@ bool CheckMountStateAction::Mount() // continue; uint32 index = (spellInfo->Effects[1].ApplyAuraName == SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED || - spellInfo->Effects[2].ApplyAuraName == SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED) - ? 1 - : 0; + spellInfo->Effects[2].ApplyAuraName == SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED || + // Winged Steed of the Ebon Blade + // This mount is meant to autoscale from a 150% flyer + // up to a 280% as you train your flying skill up. + // This incorrectly gets categorised as a ground mount, force this to flyer only. + // TODO: Add other scaling mounts here if they have the same issue, or adjust above + // checks so that they are all correctly detected. + spellInfo->Id == 54729) + ? 1 // Flying Mount + : 0; // Ground Mount if (index == 0 && std::max(spellInfo->Effects[EFFECT_1].BasePoints, spellInfo->Effects[EFFECT_2].BasePoints) > 59)