Skip to content

Commit

Permalink
Merge pull request #10235 from Galatolol/1894_last_or_set_bug
Browse files Browse the repository at this point in the history
[1894] Fix bug stopping company floated in last SR from running trains
  • Loading branch information
michaeljb authored Feb 3, 2024
2 parents 15319b0 + ac78ac6 commit 41832dc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/engine/game/g_1894/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,15 @@ def place_home_token(corporation)
hex = hex_by_id(corporation.coordinates)
tile = hex&.tile

return super if tile.color != :brown

place_home_token_brown_tile(corporation, hex, tile)
if tile.color == :brown
place_home_token_brown_tile(corporation, hex, tile)
else
super
end
end

# track actions are skipped in the final OR set, so graph must be reset here to take the home token into account
@graph.clear if @skip_track_and_token
end

def place_home_token_brown_tile(corporation, hex, tile)
Expand Down

0 comments on commit 41832dc

Please sign in to comment.