Fix CostAdjustment being run for Unless Costs (#1593)

This commit is contained in:
tool4ever
2022-09-27 21:52:49 +02:00
committed by GitHub
parent 5de3e3167f
commit df9f62d8cc
2 changed files with 2 additions and 2 deletions

View File

@@ -5,5 +5,5 @@ T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.S
SVar:TrigPutCounter:DB$ PutCounter | CounterType$ CONTESTED | ValidTgts$ Land | TgtPrompt$ For each player, select a target land | TargetMin$ OneEach | TargetMax$ OneEach | TargetsWithDifferentControllers$ True
SVar:OneEach:PlayerCountPlayers$Amount
T:Mode$ DamageDone | ValidSource$ Creature | ValidTarget$ Player.controlsLand.counters\_GE1\_CONTESTED | CombatDamage$ True | TriggerZones$ Battlefield | Execute$ TrigGainControl | TriggerDescription$ Whenever a creature deals combat damage to a player, if that player controls one or more lands with contested counters on them, that creature's controller gains control of one of those lands of their choice and untaps it.
SVar:TrigGainControl:DB$ GainControl | Choices$ Land.ControlledBy TriggeredTarget+counters_GE1_CONTESTED | Untap$ True | NewController$ TriggeredSourceController
SVar:TrigGainControl:DB$ GainControl | Choices$ Land.ControlledBy TriggeredTarget+counters_GE1_CONTESTED | Chooser$ TriggeredSourceController | Untap$ True | NewController$ TriggeredSourceController
Oracle:When Turf War enters the battlefield, for each player, put a contested counter on target land that player controls.\nWhenever a creature deals combat damage to a player, if that player controls one or more lands with contested counters on them, that creature's controller gains control of one of those lands of their choice and untaps it.

View File

@@ -232,7 +232,7 @@ public class HumanPlay {
current = Iterables.getFirst(AbilityUtils.getDefinedCards(source, sourceAbility.getParam("ShowCurrentCard"), sourceAbility), null);
}
final List<CostPart> parts = CostAdjustment.adjust(cost, sourceAbility).getCostParts();
final List<CostPart> parts = cost.getCostParts();
final List<CostPart> remainingParts = new ArrayList<>(parts);
CostPart costPart = null;
if (!parts.isEmpty()) {