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