mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[TMT] Implement Leonardo's Technique (#14295)
This commit is contained in:
parent
5ae1f65074
commit
48e120440a
1 changed files with 47 additions and 0 deletions
47
Mage.Sets/src/mage/cards/l/LeonardosTechnique.java
Normal file
47
Mage.Sets/src/mage/cards/l/LeonardosTechnique.java
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.l;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
|
||||
import mage.abilities.keyword.SneakAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.ComparisonType;
|
||||
import mage.filter.common.FilterCreatureCard;
|
||||
import mage.filter.predicate.mageobject.ManaValuePredicate;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author muz
|
||||
*/
|
||||
public final class LeonardosTechnique extends CardImpl {
|
||||
|
||||
private static final FilterCreatureCard filter
|
||||
= new FilterCreatureCard("creature card with mana value 3 or less from your graveyard");
|
||||
|
||||
static {
|
||||
filter.add(new ManaValuePredicate(ComparisonType.FEWER_THAN, 4));
|
||||
}
|
||||
|
||||
public LeonardosTechnique(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{W}");
|
||||
|
||||
// Sneak {1}{W}
|
||||
this.addAbility(new SneakAbility(this, "{1}{W}"));
|
||||
|
||||
// Return one or two target creature cards each with mana value 3 or less from your graveyard to the battlefield.
|
||||
this.getSpellAbility().addEffect(new ReturnFromGraveyardToBattlefieldTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(1, 2, filter));
|
||||
}
|
||||
|
||||
private LeonardosTechnique(final LeonardosTechnique card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public LeonardosTechnique copy() {
|
||||
return new LeonardosTechnique(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue