mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Don't grind/rpg with objects more than 5y away if master is not resting
This commit is contained in:
@@ -303,7 +303,7 @@ bool ChooseRpgTargetAction::isFollowValid(Player* bot, WorldPosition pos)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (inDungeon && realMaster == master && distance > 5.0f)
|
||||
if ((inDungeon || !master->HasPlayerFlag(PLAYER_FLAGS_RESTING)) && realMaster == master && distance > 5.0f)
|
||||
return false;
|
||||
|
||||
if (!master->isMoving() && distance < 25.0f)
|
||||
|
||||
Reference in New Issue
Block a user