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