mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-12-01 21:12:50 +08:00
reset bot strategies after remove from group
This commit is contained in:
@@ -308,6 +308,7 @@ void PlayerbotAI::UpdateAI(uint32 elapsed, bool minimal)
|
||||
PlayerbotAI* leaderAI = GET_PLAYERBOT_AI(leader);
|
||||
if (leaderAI && !leaderAI->IsRealPlayer()) {
|
||||
bot->RemoveFromGroup();
|
||||
ResetStrategies();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user