[TMT] Implement Renet, Temporal Apprentice (#14288)

* [TMT] Implement Renet, Temporal Apprentice

* Use FilterNonlandPermanent over FilterPermanent
This commit is contained in:
Muz 2026-01-22 16:39:38 -06:00 committed by GitHub
parent a5651339f9
commit d20004660a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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);
}
}