From 74adbdb2cfa41eaf4ec7ddbd719418f5b299e134 Mon Sep 17 00:00:00 2001 From: Phil Campeau Date: Tue, 5 Nov 2024 15:20:03 -0500 Subject: [PATCH] [1871] Prevents sale of more than 30% during EMR --- lib/engine/game/g_1871/step/buy_train.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/engine/game/g_1871/step/buy_train.rb b/lib/engine/game/g_1871/step/buy_train.rb index 5f5ed055f2..2b68e06137 100644 --- a/lib/engine/game/g_1871/step/buy_train.rb +++ b/lib/engine/game/g_1871/step/buy_train.rb @@ -59,9 +59,8 @@ def can_sell?(entity, bundle) return false unless sellable_bundle?(bundle) return false if @game.class::MUST_SELL_IN_BLOCKS && @corporations_sold.include?(bundle.corporation) - # This is our new clause for 1871, if this is the corporation - # selling, we can sell all of them - return true if bundle.corporation == bundle.owner + # Corporations can sell all of their treasury shares during EMR, players may not sell more than 30% of a corporation + return false if bundle.corporation != bundle.owner && (bundle.percent > @game.class::TURN_SELL_LIMIT) selling_minimum_shares?(bundle) end