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)
This commit is contained in:
avirar
2025-01-29 22:37:24 +11:00
committed by GitHub
parent 249aaf69e4
commit 247c67e449

View File

@@ -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())
{