mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
fix: Allow following master's mount state regardless of group leader in CheckMountStateAction
This commit is contained in:
parent
f5a6194808
commit
b9dbfe9646
@ -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();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user