diff options
Diffstat (limited to 'src/game/player.rs')
-rw-r--r-- | src/game/player.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/player.rs b/src/game/player.rs index be9d515..6c2efb2 100644 --- a/src/game/player.rs +++ b/src/game/player.rs @@ -82,6 +82,12 @@ impl Player { .map(|worm| worm.rounds_until_unfrozen > 0) .unwrap_or(false) } + + pub fn active_worm_is_frozen_after_tick(&self) -> bool { + self.active_worm() + .map(|worm| worm.rounds_until_unfrozen > 1) + .unwrap_or(false) + } } #[cfg(test)] |