Skip to content

Commit

Permalink
Fixed Elsha of the Infinite
Browse files Browse the repository at this point in the history
  • Loading branch information
goesta committed Nov 14, 2019
1 parent 3831bd1 commit dba27dc
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Mage.Sets/src/mage/cards/e/ElshaOfTheInfinite.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import mage.abilities.effects.common.continuous.LookAtTopCardOfLibraryAnyTimeEffect;
import mage.abilities.effects.common.continuous.PlayTheTopCardEffect;
import mage.abilities.keyword.ProwessAbility;
import mage.cards.Card;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
Expand All @@ -16,11 +15,8 @@
import mage.constants.SuperType;
import mage.filter.FilterCard;
import mage.filter.common.FilterNonlandCard;
import mage.filter.predicate.Predicate;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.CardTypePredicate;
import mage.game.Game;
import mage.players.Player;

import java.util.UUID;

Expand All @@ -33,7 +29,6 @@ public final class ElshaOfTheInfinite extends CardImpl {

static {
filter.add(Predicates.not(new CardTypePredicate(CardType.CREATURE)));
filter.add(ElshaOfTheInfinitePredicate.instance);
}

public ElshaOfTheInfinite(UUID ownerId, CardSetInfo setInfo) {
Expand Down Expand Up @@ -72,13 +67,3 @@ public ElshaOfTheInfinite copy() {
return new ElshaOfTheInfinite(this);
}
}

enum ElshaOfTheInfinitePredicate implements Predicate<Card> {
instance;

@Override
public boolean apply(Card input, Game game) {
Player player = game.getPlayer(input.getOwnerId());
return player != null && player.getLibrary().getFromTop(game).equals(input);
}
}

0 comments on commit dba27dc

Please sign in to comment.