mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
Implement Leonin of the Lost Pride
This commit is contained in:
parent
4099d233a9
commit
f954d1ad93
1 changed files with 44 additions and 0 deletions
44
Mage.Sets/src/mage/cards/l/LeoninOfTheLostPride.java
Normal file
44
Mage.Sets/src/mage/cards/l/LeoninOfTheLostPride.java
Normal 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 opponent’s 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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue