mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[TMT] Implement Renet, Temporal Apprentice (#14288)
* [TMT] Implement Renet, Temporal Apprentice * Use FilterNonlandPermanent over FilterPermanent
This commit is contained in:
parent
a5651339f9
commit
d20004660a
1 changed files with 59 additions and 0 deletions
59
Mage.Sets/src/mage/cards/r/RenetTemporalApprentice.java
Normal file
59
Mage.Sets/src/mage/cards/r/RenetTemporalApprentice.java
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterNonlandPermanent;
|
||||
import mage.filter.predicate.mageobject.AnotherPredicate;
|
||||
import mage.filter.predicate.permanent.EnteredThisTurnPredicate;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.ReturnToHandFromBattlefieldAllEffect;
|
||||
import mage.abilities.keyword.FlashAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author muz
|
||||
*/
|
||||
public final class RenetTemporalApprentice extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterNonlandPermanent("nonland permanent that entered this turn");
|
||||
|
||||
static {
|
||||
filter.add(AnotherPredicate.instance);
|
||||
filter.add(EnteredThisTurnPredicate.instance);
|
||||
}
|
||||
|
||||
public RenetTemporalApprentice(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}{U}");
|
||||
|
||||
this.supertype.add(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.WIZARD);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Flash
|
||||
this.addAbility(FlashAbility.getInstance());
|
||||
|
||||
// When Renet enters, return each other nonland permanent that entered this turn to its owner's hand.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(
|
||||
new ReturnToHandFromBattlefieldAllEffect(filter)
|
||||
.setText("return each other nonland permanent that entered this turn to its owner's hand"),
|
||||
false
|
||||
));
|
||||
}
|
||||
|
||||
private RenetTemporalApprentice(final RenetTemporalApprentice card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RenetTemporalApprentice copy() {
|
||||
return new RenetTemporalApprentice(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue