From 6164702e581a0b1d31757fda0737aa24c3527d5d Mon Sep 17 00:00:00 2001 From: ViVi Date: Fri, 25 Jun 2021 17:59:43 +0900 Subject: [PATCH] =?UTF-8?q?[StellarKnights]=20=E6=95=B0=E5=BC=8F=E8=A7=A3?= =?UTF-8?q?=E9=87=88=E6=99=82=E3=81=AE=20round=5Ftype=20=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E3=81=8C=E4=B8=8D=E9=81=A9=E5=88=87=E3=81=A0=E3=81=A3=E3=81=9F?= =?UTF-8?q?=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/bcdice/game_system/StellarKnights.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcdice/game_system/StellarKnights.rb b/lib/bcdice/game_system/StellarKnights.rb index 5019a92d0..cef822fcc 100644 --- a/lib/bcdice/game_system/StellarKnights.rb +++ b/lib/bcdice/game_system/StellarKnights.rb @@ -79,7 +79,7 @@ def eval_game_system_specific_command(command) if (table = self.class::TABLES[command]) table.roll(@randomizer) elsif (m = %r{([()+/\d]+)SK(\d)?((,\d>\d)+)?}.match(command)) - num_dices = Arithmetic.eval(m[1], round_type: RoundType::FLOOR) + num_dices = Arithmetic.eval(m[1], RoundType::FLOOR) unless num_dices.nil? resolute_action(num_dices, m[2] && m[2].to_i, m[3])