Implement Leonin of the Lost Pride

This commit is contained in:
jmharmon 2019-12-13 20:32:17 -08:00 committed by GitHub
parent 4099d233a9
commit f954d1ad93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,44 @@
package mage.cards.l;
import mage.MageInt;
import mage.abilities.common.DiesTriggeredAbility;
import mage.abilities.effects.common.ExileTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterCard;
import mage.target.common.TargetCardInOpponentsGraveyard;
import java.util.UUID;
/**
* @author jmharmon
*/
public final class LeoninOfTheLostPride extends CardImpl {
public LeoninOfTheLostPride(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}");
this.subtype.add(SubType.CAT);
this.subtype.add(SubType.WARRIOR);
this.power = new MageInt(3);
this.toughness = new MageInt(1);
// When Leonin of the Lost Pride dies, exile target card from an opponents graveyard.
DiesTriggeredAbility diesTriggeredAbility = new DiesTriggeredAbility(new ExileTargetEffect());
diesTriggeredAbility.addTarget(new TargetCardInOpponentsGraveyard(new FilterCard("card from an opponent's graveyard")));
this.addAbility(diesTriggeredAbility);
}
public LeoninOfTheLostPride(final LeoninOfTheLostPride card) {
super(card);
}
@Override
public LeoninOfTheLostPride copy() {
return new LeoninOfTheLostPride(this);
}
}