Merge pull request #1670 from icemansparks/fix-mount-state-logic

FIX: Allow following master's mount state regardless of group leader
This commit is contained in:
kadeshar 2025-09-28 20:06:53 +02:00 committed by GitHub
commit 873767db7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -152,13 +152,9 @@ bool CheckMountStateAction::Execute(Event /*event*/)
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)
{
Group* group = bot->GetGroup();
if (!group || group->GetLeaderGUID() != master->GetGUID())
return false;
if (ShouldFollowMasterMountState(master, noAttackers, shouldMount))
return Mount();