diff options
author | David Gay <david@davidgay.org> | 2021-05-29 11:11:21 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-29 11:11:21 -0400 |
commit | 67ea4f02c83a19e46180d3a0221670029cb882ff (patch) | |
tree | 1d5ed3e5f173fd824baa437b1ca803f0b91d5d03 /app/controllers | |
parent | 0b992256fbfb7a59ac44903c592502f9cac53397 (diff) |
*Actually* fix wound bug
Diffstat (limited to 'app/controllers')
-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 |