1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-10 01:01:05 -09:00

[MID] Fix Phantom Carriage allowing any creature card to be found while searching. Closes .

This commit is contained in:
Alex Vasile 2022-08-22 23:06:00 -04:00
parent 8aed9d473a
commit 2015e4e236

View file

@ -65,7 +65,7 @@ class PhantomCarriageEffect extends SearchEffect {
} }
public PhantomCarriageEffect() { public PhantomCarriageEffect() {
super(new TargetCardInLibrary(StaticFilters.FILTER_CARD_CREATURE), Outcome.Neutral); super(new TargetCardInLibrary(filter), Outcome.Neutral);
staticText = "search your library for a card with flashback or disturb, put it into your graveyard, then shuffle"; staticText = "search your library for a card with flashback or disturb, put it into your graveyard, then shuffle";
} }
@ -80,6 +80,7 @@ class PhantomCarriageEffect extends SearchEffect {
@Override @Override
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
// TODO: create common effect for this
Player controller = game.getPlayer(source.getControllerId()); Player controller = game.getPlayer(source.getControllerId());
if (controller != null) { if (controller != null) {
if (controller.searchLibrary(target, source, game)) { if (controller.searchLibrary(target, source, game)) {