[TLA] Fix Earthbending with creature counter replacement

Did not work with effects that apply replacement effects to counters being added to creatures (but not to lands). Fixed by processing action between turning the land into a creature and putting the counters on it.
This commit is contained in:
Grath 2025-11-21 11:46:35 -05:00
parent b715043d4a
commit e8d5fb8c59

View file

@ -72,6 +72,8 @@ public class EarthbendTargetEffect extends OneShotEffect {
.withAbility(HasteAbility.getInstance()), .withAbility(HasteAbility.getInstance()),
false, true, Duration.Custom false, true, Duration.Custom
), source); ), source);
// Make the land into a creature before putting counters on, for the purposes of counter doublers that only apply to creatures.
game.processAction();
permanent.addCounters(CounterType.P1P1.createInstance(value), source, game); permanent.addCounters(CounterType.P1P1.createInstance(value), source, game);
game.addDelayedTriggeredAbility(new EarthbendingDelayedTriggeredAbility(permanent, game), source); game.addDelayedTriggeredAbility(new EarthbendingDelayedTriggeredAbility(permanent, game), source);
game.fireEvent(GameEvent.getEvent( game.fireEvent(GameEvent.getEvent(