-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package mage.cards.l; | ||
|
||
import mage.MageInt; | ||
import mage.abilities.common.DiesSourceTriggeredAbility; | ||
import mage.abilities.effects.common.LookLibraryAndPickControllerEffect; | ||
import mage.cards.CardImpl; | ||
import mage.cards.CardSetInfo; | ||
import mage.constants.CardType; | ||
import mage.constants.ComparisonType; | ||
import mage.constants.PutCards; | ||
import mage.constants.SubType; | ||
import mage.filter.FilterCard; | ||
import mage.filter.common.FilterCreatureCard; | ||
import mage.filter.predicate.mageobject.PowerPredicate; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* @author TheElk801 | ||
*/ | ||
public final class LivingPhone extends CardImpl { | ||
|
||
private static final FilterCard filter = new FilterCreatureCard("a creature card with power 2 or less"); | ||
|
||
static { | ||
filter.add(new PowerPredicate(ComparisonType.FEWER_THAN, 3)); | ||
} | ||
|
||
public LivingPhone(UUID ownerId, CardSetInfo setInfo) { | ||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{2}{W}"); | ||
|
||
this.subtype.add(SubType.TOY); | ||
this.power = new MageInt(2); | ||
this.toughness = new MageInt(1); | ||
|
||
// When Living Phone dies, look at the top five cards of your library. You may reveal a creature card with power 2 or less from among them and put it into your hand. Put the rest on the bottom of your library in a random order. | ||
this.addAbility(new DiesSourceTriggeredAbility(new LookLibraryAndPickControllerEffect( | ||
4, 1, filter, PutCards.HAND, PutCards.BOTTOM_RANDOM | ||
))); | ||
} | ||
|
||
private LivingPhone(final LivingPhone card) { | ||
super(card); | ||
} | ||
|
||
@Override | ||
public LivingPhone copy() { | ||
return new LivingPhone(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters