Skip to content

Commit

Permalink
Merge pull request #11601 from bentziaxl/18esp_minor_bug_fixes
Browse files Browse the repository at this point in the history
[18ESP] Fix more minor 18esp issues
  • Loading branch information
bentziaxl authored Mar 5, 2025
2 parents 9ab1f31 + 1d69ab1 commit dbafa01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/engine/game/g_18_esp/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Game < Game::Base

NORTH_SOUTH_DIVIDE = 13

P2_TRAIN_ID = '2-0'
P2_TRAIN_ID = '2P-0'

ARANJUEZ_HEX = 'F26'

Expand Down Expand Up @@ -887,7 +887,8 @@ def place_home_token(corporation)
city_by_id("#{hex.tile.id}-#{corporation.city}")
end
@log << "#{corporation.name} places a token on #{hex.id}"
city.place_token(corporation, token, cheater: true, check_tokenable: false)
cheater = !city.tokenable?(corporation)
city.place_token(corporation, token, cheater: cheater, check_tokenable: false)
else
super
end
Expand Down

0 comments on commit dbafa01

Please sign in to comment.