mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
Don't grind/rpg with objects more than 5y away if master is not resting
This commit is contained in:
parent
47b13bf73a
commit
2f4d3276e8
@ -303,7 +303,7 @@ bool ChooseRpgTargetAction::isFollowValid(Player* bot, WorldPosition pos)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inDungeon && realMaster == master && distance > 5.0f)
|
if ((inDungeon || !master->HasPlayerFlag(PLAYER_FLAGS_RESTING)) && realMaster == master && distance > 5.0f)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!master->isMoving() && distance < 25.0f)
|
if (!master->isMoving() && distance < 25.0f)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user