diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/game_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb index f6bb7b8..d1d8bd6 100644 --- a/app/controllers/game_controller.rb +++ b/app/controllers/game_controller.rb @@ -219,6 +219,7 @@ class GameController < ApplicationController dealt_damage = dealt_damage * 2 end blocked_damage = (accuracy_roll >= (roll(20) + target.block(with_combat_style: true))) ? 0 : target.block_value + blocked_damage = [blocked_damage, (dealt_damage - 1)].min resolved_damage = dealt_damage - blocked_damage actor == char ? mon_hp -= resolved_damage : char_hp -= resolved_damage damage_text = "#{resolved_damage} damage." |