mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
fix: Allow following master's mount state regardless of group leader in CheckMountStateAction
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user