From 67ea4f02c83a19e46180d3a0221670029cb882ff Mon Sep 17 00:00:00 2001 From: David Gay Date: Sat, 29 May 2021 11:11:21 -0400 Subject: *Actually* fix wound bug --- app/controllers/game_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/controllers') diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb index aad4b31..9de6e8f 100644 --- a/app/controllers/game_controller.rb +++ b/app/controllers/game_controller.rb @@ -204,9 +204,9 @@ class GameController < ApplicationController char.wounds += 1 char.save! unless char.can_fight? - @results.push([{ type: "error", - message: "You can't fight in your condition. You'll have to heal a wound." }]) - char.stop_activity unless char.can_fight? + @results.push({ type: "error", + message: "You can't fight in your condition. You'll have to heal a wound." }) + char.stop_activity return end else -- cgit v1.2.3