[NCC] Fix Protection Racket drawing even if opponent pays. For #9258

This commit is contained in:
Alex Vasile 2022-07-13 21:43:53 -04:00
parent 7fda27cb7e
commit 0d91243efe

View file

@ -26,7 +26,11 @@ public final class ProtectionRacket extends CardImpl {
public ProtectionRacket(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{B}");
// At the beginning of your upkeep, repeat the following process for each opponent in turn order. Reveal the top card of your library. That player pay pay life equal to that card's mana value. If they do, exile that card. Otherwise, put it into your hand.
// At the beginning of your upkeep, repeat the following process for each opponent in turn order.
// Reveal the top card of your library.
// That player may pay life equal to that card's mana value.
// If they do, exile that card.
// Otherwise, put it into your hand.
this.addAbility(new BeginningOfUpkeepTriggeredAbility(
new ProtectionRacketEffect(), TargetController.YOU, false
));
@ -80,8 +84,9 @@ class ProtectionRacketEffect extends OneShotEffect {
)) {
cost.pay(source, game, source, playerId, true);
controller.moveCards(card, Zone.EXILED, source, game);
} else {
controller.moveCards(card, Zone.HAND, source, game);
}
controller.moveCards(card, Zone.HAND, source, game);
}
return true;
}