mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
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:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user