diff --git a/server/src/game.rs b/server/src/game.rs index 1eaa786b..bccc6588 100644 --- a/server/src/game.rs +++ b/server/src/game.rs @@ -469,6 +469,11 @@ impl Game { let mut resolutions = resolution_steps(&cast, &mut self); r_animation_ms = resolutions.iter().fold(r_animation_ms, |acc, r| acc + r.clone().get_delay()); + + if resolutions.len() > 0 { + casts.push(cast); + } + self.resolved.append(&mut resolutions); // while let Some(resolution) = resolutions.pop() { @@ -479,7 +484,6 @@ impl Game { // the cast itself goes into this temp vec // to handle cooldowns - casts.push(cast); // sort the stack again in case speeds have changed self.stack_sort_speed();