mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 13:19:18 -08:00
* Reality Scramble - fix that the last matching card is put onto the battlefield instead of the first matching card (fixes #5290).
This commit is contained in:
parent
a0776d7b66
commit
470fd4c75a
2 changed files with 38 additions and 1 deletions
|
|
@ -38,7 +38,9 @@ public final class RealityScramble extends CardImpl {
|
|||
public RealityScramble(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{R}{R}");
|
||||
|
||||
// Put target permanent you own on the bottom of your library. Reveal cards from the top of your library until you reveal a card that shares a card type with that permanent. Put that card onto the battlefield and the rest on the bottom of your library in a random order.
|
||||
// Put target permanent you own on the bottom of your library. Reveal cards from the top of your library
|
||||
// until you reveal a card that shares a card type with that permanent. Put that card onto the battlefield
|
||||
// and the rest on the bottom of your library in a random order.
|
||||
this.getSpellAbility().addEffect(new RealityScrambleEffect());
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(filter));
|
||||
|
||||
|
|
@ -99,6 +101,9 @@ class RealityScrambleEffect extends OneShotEffect {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (cardToPlay != null) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
controller.revealCards(source, toReveal, game);
|
||||
if (cardToPlay != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue