mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
convert Anowon, the Ruin Sage to triggers
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
Name:Anowon, the Ruin Sage
|
Name:Anowon, the Ruin Sage
|
||||||
ManaCost:3 B B
|
ManaCost:3 B B
|
||||||
Types:Legendary Creature Vampire Shaman
|
Types:Legendary Creature Vampire Shaman
|
||||||
Text:At the beginning of your upkeep, each player sacrifices a non-Vampire creature.
|
Text:no text
|
||||||
PT:4/3
|
PT:4/3
|
||||||
|
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigSac | TriggerDescription$ At the beginning of your upkeep, each player sacrifices a non-Vampire creature.
|
||||||
|
SVar:TrigSac:AB$Sacrifice | Cost$ 0 | SacValid$ Creature.nonVampire | Defined$ Each
|
||||||
SVar:RemAIDeck:True
|
SVar:RemAIDeck:True
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/anowon_the_ruin_sage.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/anowon_the_ruin_sage.jpg
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
upkeep_Greener_Pastures();
|
upkeep_Greener_Pastures();
|
||||||
upkeep_Heartmender();
|
upkeep_Heartmender();
|
||||||
upkeep_Anowon();
|
|
||||||
upkeep_Cunning_Lethemancer();
|
upkeep_Cunning_Lethemancer();
|
||||||
upkeep_Shapeshifter();
|
upkeep_Shapeshifter();
|
||||||
upkeep_Vesuvan_Doppelganger_Keyword();
|
upkeep_Vesuvan_Doppelganger_Keyword();
|
||||||
@@ -3808,38 +3807,6 @@ public class GameActionUtil {
|
|||||||
} // if creatures > 0
|
} // if creatures > 0
|
||||||
}//upkeep_Heartmender
|
}//upkeep_Heartmender
|
||||||
|
|
||||||
private static void upkeep_Anowon() {
|
|
||||||
final Player player = AllZone.Phase.getPlayerTurn();
|
|
||||||
CardList list = AllZoneUtil.getPlayerCardsInPlay(player, "Anowon, the Ruin Sage");
|
|
||||||
|
|
||||||
if(list.size() > 0) {
|
|
||||||
Ability ability = new Ability(list.get(0), "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
PlayerZone hPlay = AllZone.getZone(Constant.Zone.Battlefield, AllZone.HumanPlayer);
|
|
||||||
PlayerZone cPlay = AllZone.getZone(Constant.Zone.Battlefield, AllZone.ComputerPlayer);
|
|
||||||
CardList choices = new CardList(hPlay.getCards());
|
|
||||||
|
|
||||||
CardListFilter filter = new CardListFilter() {
|
|
||||||
public boolean addCard(Card c) {
|
|
||||||
return (c.isCreature() && !c.isType("Vampire"));
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
choices = choices.filter(filter);
|
|
||||||
if(choices.size() > 0) AllZone.HumanPlayer.sacrificeCreature(choices);
|
|
||||||
|
|
||||||
CardList compCreats = new CardList(cPlay.getCards());
|
|
||||||
compCreats = compCreats.filter(filter);
|
|
||||||
|
|
||||||
if(compCreats.size() > 0) AllZone.ComputerPlayer.sacrificeCreature(compCreats);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
ability.setStackDescription("At the beginning of your upkeep, each player sacrifices a non-Vampire creature.");
|
|
||||||
AllZone.Stack.add(ability);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void upkeep_Cunning_Lethemancer() {
|
private static void upkeep_Cunning_Lethemancer() {
|
||||||
final Player player = AllZone.Phase.getPlayerTurn();
|
final Player player = AllZone.Phase.getPlayerTurn();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user