short circuit when game is finished
This commit is contained in:
parent
9ce98fe81f
commit
14ddc0b237
@ -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 });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user