Skip to content

Commit

Permalink
[18Uruguay] Update Discard train. Only trains shall end up in the ban…
Browse files Browse the repository at this point in the history
…kpool
  • Loading branch information
patrikolesen committed Feb 2, 2024
1 parent 8429790 commit 2e629b7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/engine/game/g_18_uruguay/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def operating_round(round_num)
Engine::Step::Token,
Engine::Step::Route,
Engine::Step::Dividend,
Engine::Step::DiscardTrain,
G18Uruguay::Step::DiscardTrain,
Engine::Step::BuyTrain,
], round_num: round_num)
end
Expand Down
18 changes: 18 additions & 0 deletions lib/engine/game/g_18_uruguay/step/discard_train.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# frozen_string_literal: true

require_relative '../../../step/discard_train'

module Engine
module Game
module G18Uruguay
module Step
class DiscardTrain < Engine::Step::DiscardTrain
def process_discard_train(action)
action.train.remove_variants!
super
end
end
end
end
end
end

0 comments on commit 2e629b7

Please sign in to comment.