Skip to content

Commit

Permalink
実行時エラーの発生を防止
Browse files Browse the repository at this point in the history
  • Loading branch information
spore0814 committed Apr 28, 2021
1 parent 38bf539 commit ab211a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/bcdice/game_system/AnimaAnimus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ class AnimaAnimus < Base
MESSAGETEXT

def eval_game_system_specific_command(command)
m = /(\d+)AN<=(\d+([+\-]\d+)*)/i.match(command)
if TABLES.key?(command)
return roll_tables(command, TABLES)
elsif m
return check_action(m)
else
return check_action(/(\d+)AN<=(\d+([+\-]\d+)*)/i.match(command))
return nil
end
end

Expand Down

0 comments on commit ab211a7

Please sign in to comment.