Don't reveal twice

This commit is contained in:
Noah Gleason 2018-07-01 16:54:19 -04:00
parent 147a3cf91d
commit 7b7686f7e0
No known key found for this signature in database
GPG key ID: EC030EC6B0650A40

View file

@ -40,11 +40,10 @@ public final class RakdosAugermage extends CardImpl {
this.addAbility(FirstStrikeAbility.getInstance());
// {tap}: Reveal your hand and discard a card of target opponents choice. Then that player reveals their hand and discards a card of your choice. Activate this ability only any time you could cast a sorcery.
ActivateAsSorceryActivatedAbility ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new RevealHandSourceControllerEffect(), new TapSourceCost());
ability.addEffect(new RakdosAugermageEffect());
ability.addEffect(new RevealHandTargetEffect());
ActivateAsSorceryActivatedAbility ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new RakdosAugermageEffect(), new TapSourceCost());
ability.addEffect(new DiscardCardYouChooseTargetEffect());
ability.addTarget(new TargetOpponent());
this.addAbility(ability);
}
public RakdosAugermage(final RakdosAugermage card) {
@ -61,7 +60,7 @@ class RakdosAugermageEffect extends OneShotEffect {
public RakdosAugermageEffect() {
super(Outcome.Discard);
staticText = "discard a card of target opponents choice";
staticText = "reveal your hand and discard a card of target opponents choice";
}
public RakdosAugermageEffect(final RakdosAugermageEffect effect) {
@ -76,7 +75,7 @@ class RakdosAugermageEffect extends OneShotEffect {
if (player != null && controller != null) {
Cards revealedCards = new CardsImpl();
revealedCards.addAll(controller.getHand());
player.revealCards(sourceCard != null ? sourceCard.getIdName() + " (" + sourceCard.getZoneChangeCounter(game) + ')' : "Discard", revealedCards, game);
player.revealCards((sourceCard != null ? sourceCard.getIdName() + " (" + sourceCard.getZoneChangeCounter(game) + ") (" : "Discard (")+controller.getName()+")", revealedCards, game);
TargetCard target = new TargetCard(Zone.HAND, new FilterCard());
if (player.choose(Outcome.Benefit, revealedCards, target, game)) {
Card card = revealedCards.get(target.getFirstTarget(), game);