Skip to content

Commit

Permalink
Merge pull request #480 from ViVi-shark/features/fix_round_type-Revul…
Browse files Browse the repository at this point in the history
…ture

[Revulture] 数式解釈時の round_type 指定が不適切だったのを修正
  • Loading branch information
ysakasin authored Jun 25, 2021
2 parents 8f24f72 + 84c1ec9 commit 2f4fc68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bcdice/game_system/Revulture.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def eval_game_system_specific_command(command)
private

def roll_attack(dice_count_expression, border_expression, additional_damage_rules)
dice_count = Arithmetic.eval(dice_count_expression, round_type: RoundType::FLOOR)
border = Arithmetic.eval(border_expression, round_type: RoundType::FLOOR).clamp(1, 6) if border_expression
dice_count = Arithmetic.eval(dice_count_expression, RoundType::FLOOR)
border = Arithmetic.eval(border_expression, RoundType::FLOOR).clamp(1, 6) if border_expression

command = make_command_text(dice_count, border, additional_damage_rules)

Expand Down

0 comments on commit 2f4fc68

Please sign in to comment.