Skip to content

Commit

Permalink
[AniMalus] 不要な #to_i を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
ysakasin committed Jan 22, 2024
1 parent f40b9a3 commit b75ae18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bcdice/game_system/AniMalus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def resolute_attacking(command)
success_num = dice.count { |val| val <= num_target }
is_critical = (dice[0] == 1 && dice[1] == 2 && dice[2] == 3)
is_fumble = (dice[0] == 4 && dice[1] == 5 && dice[2] == 6)
damage1 = dice.max.to_i
damage2 = dice.max.to_i
damage1 = dice.max
damage2 = dice.max
if dice[0] == dice[1] && dice[1] == dice[2] && dice[2] <= num_target
damage2 += 6
damage1 = damage2
Expand Down

0 comments on commit b75ae18

Please sign in to comment.