mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
fixed Wanderwine Prophets trigger implementation
This commit is contained in:
parent
ad249d7c6b
commit
f2024d3897
1 changed files with 6 additions and 3 deletions
|
@ -32,6 +32,7 @@ import mage.MageInt;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
|
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
|
||||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||||
|
import mage.abilities.effects.common.DoIfCostPaid;
|
||||||
import mage.abilities.effects.common.turn.AddExtraTurnControllerEffect;
|
import mage.abilities.effects.common.turn.AddExtraTurnControllerEffect;
|
||||||
import mage.abilities.keyword.ChampionAbility;
|
import mage.abilities.keyword.ChampionAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
|
@ -48,7 +49,7 @@ import mage.target.common.TargetControlledPermanent;
|
||||||
*/
|
*/
|
||||||
public class WanderwineProphets extends CardImpl {
|
public class WanderwineProphets extends CardImpl {
|
||||||
|
|
||||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent("Merfolk");
|
private static final FilterControlledPermanent filter = new FilterControlledPermanent("a Merfolk");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SubtypePredicate(SubType.MERFOLK));
|
filter.add(new SubtypePredicate(SubType.MERFOLK));
|
||||||
|
@ -64,8 +65,10 @@ public class WanderwineProphets extends CardImpl {
|
||||||
// Champion a Merfolk
|
// Champion a Merfolk
|
||||||
this.addAbility(new ChampionAbility(this, SubType.MERFOLK, false));
|
this.addAbility(new ChampionAbility(this, SubType.MERFOLK, false));
|
||||||
// Whenever Wanderwine Prophets deals combat damage to a player, you may sacrifice a Merfolk. If you do, take an extra turn after this one.
|
// Whenever Wanderwine Prophets deals combat damage to a player, you may sacrifice a Merfolk. If you do, take an extra turn after this one.
|
||||||
Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(new AddExtraTurnControllerEffect(), true);
|
Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(new DoIfCostPaid(
|
||||||
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(1, 1, filter, true)));
|
new AddExtraTurnControllerEffect(),
|
||||||
|
new SacrificeTargetCost(new TargetControlledPermanent(1, 1, filter, true))
|
||||||
|
), true);
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue