fix: Allow following master's mount state regardless of group leader in CheckMountStateAction

This commit is contained in:
Tecc
2025-09-27 22:50:14 +02:00
parent f5a6194808
commit b9dbfe9646

View File

@@ -152,13 +152,9 @@ bool CheckMountStateAction::Execute(Event /*event*/)
bool inBattleground = bot->InBattleground(); bool inBattleground = bot->InBattleground();
// If there is a master and bot not in BG // If there is a master and bot not in BG, follow master's mount state regardless of group leader
if (master && !inBattleground) if (master && !inBattleground)
{ {
Group* group = bot->GetGroup();
if (!group || group->GetLeaderGUID() != master->GetGUID())
return false;
if (ShouldFollowMasterMountState(master, noAttackers, shouldMount)) if (ShouldFollowMasterMountState(master, noAttackers, shouldMount))
return Mount(); return Mount();