mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
convert Unstable Mutation to triggers
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
Name:Unstable Mutation
|
||||
ManaCost:U
|
||||
Types:Enchantment Aura
|
||||
Text:At the beginning of the upkeep of enchanted creature's controller, put a -1/-1 counter on that creature.
|
||||
Text:no text
|
||||
K:enPump:+3/+3
|
||||
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ EnchantedController | TriggerZones$ Battlefield | Execute$ TrigPutCounter | TriggerDescription$ At the beginning of the upkeep of enchanted creature's controller, put a -1/-1 counter on that creature.
|
||||
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Enchanted | CounterType$ M1M1 | CounterNum$ 1
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/unstable_mutation.jpg
|
||||
SetInfo:TSB|Special|http://magiccards.info/scans/en/tsts/33.jpg
|
||||
|
||||
@@ -48,7 +48,6 @@ public class GameActionUtil {
|
||||
upkeep_Dance_of_the_Dead();
|
||||
upkeep_Mana_Crypt();
|
||||
upkeep_Farmstead();
|
||||
upkeep_Unstable_Mutation();
|
||||
|
||||
/* Converteded to AF Trigger
|
||||
upkeep_Plague_Spitter();
|
||||
@@ -4824,43 +4823,6 @@ public class GameActionUtil {
|
||||
}
|
||||
}//upkeep_Mana_Crypt
|
||||
|
||||
private static void upkeep_Unstable_Mutation() {
|
||||
final String auraName = "Unstable Mutation";
|
||||
final Player player = AllZone.Phase.getPlayerTurn();
|
||||
|
||||
CardList list = AllZoneUtil.getPlayerCardsInPlay(player);
|
||||
list = list.filter(new CardListFilter() {
|
||||
public boolean addCard(Card c) {
|
||||
return c.isCreature() && c.isEnchanted();
|
||||
}
|
||||
});
|
||||
|
||||
if(list.size() > 0) {
|
||||
Ability ability;
|
||||
for(final Card creature:list) {
|
||||
if(creature.isEnchantedBy(auraName)) {
|
||||
CardList auras = new CardList(creature.getEnchantedBy().toArray());
|
||||
auras = auras.getName(auraName);
|
||||
for(Card aura:auras) {
|
||||
final Card source = aura;
|
||||
ability = new Ability(source, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
creature.addCounter(Counters.M1M1, 1);
|
||||
}
|
||||
};
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(source.getName()).append(" - put a -1/-1 counter on ").append(creature.getName());
|
||||
ability.setStackDescription(sb.toString());
|
||||
|
||||
AllZone.Stack.add(ability);
|
||||
}
|
||||
}
|
||||
}
|
||||
}//list > 0
|
||||
}//upkeep_Unstable_Mutation()
|
||||
|
||||
private static void upkeep_Farmstead() {
|
||||
final String auraName = "Farmstead";
|
||||
final Player player = AllZone.Phase.getPlayerTurn();
|
||||
|
||||
Reference in New Issue
Block a user