There was an error while loading. Please reload this page.
1 parent 967a76c commit 17adfbdCopy full SHA for 17adfbd
1 file changed
crates/control/src/behavior/node.rs
@@ -121,8 +121,12 @@ impl Behavior {
121
(Some(_), PrimaryState::Ready | PrimaryState::Set | PrimaryState::Playing) => {}
122
(Some(_), _) => self.active_since = None,
123
}
124
-
125
- if self.previous_role != context.world_state.robot.role {
+
+ if self.previous_role != context.world_state.robot.role
126
+ && context.world_state.robot.role != Role::Searcher
127
+ && context.world_state.robot.role != Role::Loser
128
+ && self.previous_role != Role::Keeper
129
+ {
130
self.previous_role = context.world_state.robot.role;
131
self.last_time_role_changed = now;
132
0 commit comments