mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Xiahou Dun, the One-Eyed - Fixed missing horsemanship ability.
This commit is contained in:
parent
ae34fd795a
commit
97c5701518
1 changed files with 5 additions and 2 deletions
|
@ -35,6 +35,7 @@ import mage.abilities.common.ActivateIfConditionActivatedAbility;
|
||||||
import mage.abilities.condition.common.MyTurnBeforeAttackersDeclaredCondition;
|
import mage.abilities.condition.common.MyTurnBeforeAttackersDeclaredCondition;
|
||||||
import mage.abilities.costs.common.SacrificeSourceCost;
|
import mage.abilities.costs.common.SacrificeSourceCost;
|
||||||
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
|
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
|
||||||
|
import mage.abilities.keyword.HorsemanshipAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
|
@ -48,7 +49,7 @@ import mage.target.common.TargetCardInYourGraveyard;
|
||||||
* @author fireshoes
|
* @author fireshoes
|
||||||
*/
|
*/
|
||||||
public class XiahouDunTheOneEyed extends CardImpl {
|
public class XiahouDunTheOneEyed extends CardImpl {
|
||||||
|
|
||||||
private static final FilterCard filter = new FilterCard("a black card");
|
private static final FilterCard filter = new FilterCard("a black card");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
@ -65,8 +66,10 @@ public class XiahouDunTheOneEyed extends CardImpl {
|
||||||
this.toughness = new MageInt(2);
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
// Horsemanship
|
// Horsemanship
|
||||||
|
this.addAbility(HorsemanshipAbility.getInstance());
|
||||||
|
|
||||||
// Sacrifice Xiahou Dun, the One-Eyed: Return target black card from your graveyard to your hand. Activate this ability only during your turn, before attackers are declared.
|
// Sacrifice Xiahou Dun, the One-Eyed: Return target black card from your graveyard to your hand. Activate this ability only during your turn, before attackers are declared.
|
||||||
Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD,
|
Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD,
|
||||||
new ReturnFromGraveyardToHandTargetEffect(), new SacrificeSourceCost(), MyTurnBeforeAttackersDeclaredCondition.getInstance());
|
new ReturnFromGraveyardToHandTargetEffect(), new SacrificeSourceCost(), MyTurnBeforeAttackersDeclaredCondition.getInstance());
|
||||||
ability.addTarget(new TargetCardInYourGraveyard(filter));
|
ability.addTarget(new TargetCardInYourGraveyard(filter));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
Loading…
Reference in a new issue