From 247c67e449809263bd7ec15f5ff91800c8d24141 Mon Sep 17 00:00:00 2001 From: avirar Date: Wed, 29 Jan 2025 22:37:24 +1100 Subject: [PATCH] CheckMountStateAction: Added SPELL_AURA_TRANSFORM and IsInDisallowedMountForm (#923) Resolved issue where bots are transformed (e.g Deathbringer's Will trinket) and would stand still attempting to mount, still allows mounting when the transform allows it (e.g Pirate Costume, Transporter Malfunction) --- src/strategy/actions/CheckMountStateAction.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/strategy/actions/CheckMountStateAction.cpp b/src/strategy/actions/CheckMountStateAction.cpp index fbddbb21..1ec375b5 100644 --- a/src/strategy/actions/CheckMountStateAction.cpp +++ b/src/strategy/actions/CheckMountStateAction.cpp @@ -117,6 +117,10 @@ bool CheckMountStateAction::isUseful() if (bot->HasAura(23333) || bot->HasAura(23335) || bot->HasAura(34976)) return false; + // Allow mounting while transformed only if the form allows it + if (bot->HasAuraType(SPELL_AURA_TRANSFORM) && bot->IsInDisallowedMountForm()) + return false; + // Only mount if BG starts in less than 30 sec if (bot->InBattleground()) {