From 14ddc0b2375b8f02bc7c573cd6a429f5df71c934 Mon Sep 17 00:00:00 2001 From: ntr Date: Wed, 18 Dec 2019 11:14:35 +1000 Subject: [PATCH] short circuit when game is finished --- core/src/game.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/game.rs b/core/src/game.rs index 01cc35fa..a5bacbda 100644 --- a/core/src/game.rs +++ b/core/src/game.rs @@ -495,6 +495,8 @@ impl Game { } fn resolve(&mut self, cast: Cast) -> &mut Game { + if self.finished() { return self } + // If the skill is disabled for source nothing else will happen if let Some(effects) = self.construct(cast.source).disabled(cast.skill) { self.add_resolution(&cast, &Event::Disable { construct: cast.source, effects });