push new empty events vec on resolve phase start
This commit is contained in:
+3
-3
@@ -191,9 +191,7 @@ impl Game {
|
||||
}
|
||||
|
||||
fn skill_phase_start(mut self, resolution_animation_ms: i64) -> Game {
|
||||
self.events.push(vec![]);
|
||||
|
||||
self.phase_start = Utc::now()
|
||||
self.phase_start = Utc::now()
|
||||
.checked_add_signed(Duration::milliseconds(resolution_animation_ms))
|
||||
.expect("could not set phase start");
|
||||
|
||||
@@ -415,6 +413,8 @@ impl Game {
|
||||
}
|
||||
|
||||
pub fn resolve_phase_start(mut self) -> Game {
|
||||
self.events.push(vec![]);
|
||||
|
||||
if self.phase != Phase::Skill {
|
||||
panic!("game not in skill phase");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user