diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/game_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |