mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Merge pull request #6044 from magefree/ElshaOfTheInfinite
Fixed Elsha of the Infinite
This commit is contained in:
commit
062929847b
1 changed files with 0 additions and 15 deletions
|
@ -7,7 +7,6 @@ import mage.abilities.effects.common.continuous.CastAsThoughItHadFlashAllEffect;
|
||||||
import mage.abilities.effects.common.continuous.LookAtTopCardOfLibraryAnyTimeEffect;
|
import mage.abilities.effects.common.continuous.LookAtTopCardOfLibraryAnyTimeEffect;
|
||||||
import mage.abilities.effects.common.continuous.PlayTheTopCardEffect;
|
import mage.abilities.effects.common.continuous.PlayTheTopCardEffect;
|
||||||
import mage.abilities.keyword.ProwessAbility;
|
import mage.abilities.keyword.ProwessAbility;
|
||||||
import mage.cards.Card;
|
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
@ -16,11 +15,8 @@ import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.common.FilterNonlandCard;
|
import mage.filter.common.FilterNonlandCard;
|
||||||
import mage.filter.predicate.Predicate;
|
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||||
import mage.game.Game;
|
|
||||||
import mage.players.Player;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@ -33,7 +29,6 @@ public final class ElshaOfTheInfinite extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new CardTypePredicate(CardType.CREATURE)));
|
filter.add(Predicates.not(new CardTypePredicate(CardType.CREATURE)));
|
||||||
filter.add(ElshaOfTheInfinitePredicate.instance);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ElshaOfTheInfinite(UUID ownerId, CardSetInfo setInfo) {
|
public ElshaOfTheInfinite(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
@ -72,13 +67,3 @@ public final class ElshaOfTheInfinite extends CardImpl {
|
||||||
return new ElshaOfTheInfinite(this);
|
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);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue