mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
convert Noxious Hatchling, Sturdy Hatchling, and Voracious Hatchling to triggers
This commit is contained in:
@@ -1,12 +1,15 @@
|
|||||||
Name:Noxious Hatchling
|
Name:Noxious Hatchling
|
||||||
ManaCost:3 BG
|
ManaCost:3 BG
|
||||||
Types:Creature Elemental
|
Types:Creature Elemental
|
||||||
Text:Whenever you cast a black spell, remove a -1/-1 counter from Noxious Hatchling.\r\nWhenever you cast a green spell, remove a -1/-1 counter from Noxious Hatchling.
|
Text:no text
|
||||||
PT:6/6
|
PT:6/6
|
||||||
K:etbCounter:M1M1:4
|
K:etbCounter:M1M1:4
|
||||||
K:Wither
|
K:Wither
|
||||||
|
T:Mode$ SpellCast | ValidCard$ Card.Black | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigRemoveCounter | TriggerDescription$ Whenever you cast a black spell, remove a -1/-1 counter from CARDNAME.
|
||||||
|
T:Mode$ SpellCast | ValidCard$ Card.Green | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigRemoveCounter | TriggerDescription$ Whenever you cast a green spell, remove a -1/-1 counter from CARDNAME.
|
||||||
|
SVar:TrigRemoveCounter:AB$RemoveCounter | Cost$ 0 | Defined$ Self | CounterType$ M1M1 | CounterNum$ 1
|
||||||
SVar:BuffedBy:Spell.Black,Spell.Green
|
SVar:BuffedBy:Spell.Black,Spell.Green
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/Noxious_Hatchling.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/noxious_hatchling.jpg
|
||||||
SetInfo:EVE|Uncommon|http://magiccards.info/scans/en/eve/124.jpg
|
SetInfo:EVE|Uncommon|http://magiccards.info/scans/en/eve/124.jpg
|
||||||
End
|
End
|
||||||
@@ -1,12 +1,15 @@
|
|||||||
Name:Sturdy Hatchling
|
Name:Sturdy Hatchling
|
||||||
ManaCost:3 GU
|
ManaCost:3 GU
|
||||||
Types:Creature Elemental
|
Types:Creature Elemental
|
||||||
Text:Whenever you cast a green spell, remove a -1/-1 counter from Sturdy Hatchling.\r\nWhenever you cast a blue spell, remove a -1/-1 counter from Sturdy Hatchling.
|
Text:
|
||||||
PT:6/6
|
PT:6/6
|
||||||
K:etbCounter:M1M1:4
|
K:etbCounter:M1M1:4
|
||||||
A:AB$Pump | Cost$ GU | KW$ Shroud | SpellDescription$ Sturdy Hatchling gains shroud until end of turn.
|
A:AB$Pump | Cost$ GU | KW$ Shroud | SpellDescription$ CARDNAME gains shroud until end of turn.
|
||||||
|
T:Mode$ SpellCast | ValidCard$ Card.Green | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigRemoveCounter | TriggerDescription$ Whenever you cast a green spell, remove a -1/-1 counter from CARDNAME.
|
||||||
|
T:Mode$ SpellCast | ValidCard$ Card.Blue | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigRemoveCounter | TriggerDescription$ Whenever you cast a blue spell, remove a -1/-1 counter from CARDNAME.
|
||||||
|
SVar:TrigRemoveCounter:AB$RemoveCounter | Cost$ 0 | Defined$ Self | CounterType$ M1M1 | CounterNum$ 1
|
||||||
SVar:BuffedBy:Spell.Blue,Spell.Green
|
SVar:BuffedBy:Spell.Blue,Spell.Green
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/Sturdy_Hatchling.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/sturdy_hatchling.jpg
|
||||||
SetInfo:EVE|Uncommon|http://magiccards.info/scans/en/eve/163.jpg
|
SetInfo:EVE|Uncommon|http://magiccards.info/scans/en/eve/163.jpg
|
||||||
End
|
End
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
Name:Voracious Hatchling
|
Name:Voracious Hatchling
|
||||||
ManaCost:3 WB
|
ManaCost:3 WB
|
||||||
Types:Creature Elemental
|
Types:Creature Elemental
|
||||||
Text:Whenever you cast a white spell, remove a -1/-1 counter from Voracious Hatchling.\r\nWhenever you cast a black spell, remove a -1/-1 counter from Voracious Hatchling.
|
Text:no text
|
||||||
PT:6/6
|
PT:6/6
|
||||||
K:etbCounter:M1M1:4
|
K:etbCounter:M1M1:4
|
||||||
K:Lifelink
|
K:Lifelink
|
||||||
|
T:Mode$ SpellCast | ValidCard$ Card.White | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigRemoveCounter | TriggerDescription$ Whenever you cast a white spell, remove a -1/-1 counter from CARDNAME.
|
||||||
|
T:Mode$ SpellCast | ValidCard$ Card.Black | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigRemoveCounter | TriggerDescription$ Whenever you cast a black spell, remove a -1/-1 counter from CARDNAME.
|
||||||
|
SVar:TrigRemoveCounter:AB$RemoveCounter | Cost$ 0 | Defined$ Self | CounterType$ M1M1 | CounterNum$ 1
|
||||||
SVar:BuffedBy:Spell.White,Spell.Black
|
SVar:BuffedBy:Spell.White,Spell.Black
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/Voracious_Hatchling.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/Voracious_Hatchling.jpg
|
||||||
|
|||||||
@@ -185,9 +185,6 @@ public class GameActionUtil {
|
|||||||
playCard_Riverfall_Mimic(c);
|
playCard_Riverfall_Mimic(c);
|
||||||
playCard_Shorecrasher_Mimic(c);
|
playCard_Shorecrasher_Mimic(c);
|
||||||
playCard_Woodlurker_Mimic(c);
|
playCard_Woodlurker_Mimic(c);
|
||||||
playCard_Voracious_Hatchling(c);
|
|
||||||
playCard_Sturdy_Hatchling(c);
|
|
||||||
playCard_Noxious_Hatchling(c);
|
|
||||||
playCard_Witch_Maw_Nephilim(c);
|
playCard_Witch_Maw_Nephilim(c);
|
||||||
playCard_Forced_Fruition(c);
|
playCard_Forced_Fruition(c);
|
||||||
playCard_Gelectrode(c);
|
playCard_Gelectrode(c);
|
||||||
@@ -1138,181 +1135,9 @@ public class GameActionUtil {
|
|||||||
ability2.setStackDescription("Dovescape Ability");
|
ability2.setStackDescription("Dovescape Ability");
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
} // Dovescape
|
} // Dovescape
|
||||||
|
|
||||||
public static void playCard_Noxious_Hatchling(Card c) {
|
|
||||||
final Player controller = c.getController();
|
|
||||||
|
|
||||||
final PlayerZone play = AllZone.getZone(Constant.Zone.Battlefield, controller);
|
|
||||||
|
|
||||||
CardList list = new CardList();
|
|
||||||
list.addAll(play.getCards());
|
|
||||||
|
|
||||||
list = list.getName("Noxious Hatchling");
|
|
||||||
|
|
||||||
if(list.size() > 0) {
|
|
||||||
if(c.isBlack()) {
|
|
||||||
for(int i = 0; i < list.size(); i++) {
|
|
||||||
final Card card = list.get(i);
|
|
||||||
|
|
||||||
Ability ability2 = new Ability(card, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
if(card.getCounters(Counters.M1M1) > 0) card.subtractCounter(Counters.M1M1, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
}; // ability2
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append(card.getName()).append(" - ").append(c.getController());
|
|
||||||
sb.append(" played a black spell, remove a -1/-1 counter from Noxious Hatchling.");
|
|
||||||
ability2.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
|
||||||
}
|
|
||||||
}//if
|
|
||||||
}
|
|
||||||
|
|
||||||
if(c.isGreen()) {
|
|
||||||
for(int i = 0; i < list.size(); i++) {
|
|
||||||
final Card card = list.get(i);
|
|
||||||
|
|
||||||
Ability ability = new Ability(card, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
if(card.getCounters(Counters.M1M1) > 0) card.subtractCounter(Counters.M1M1, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
}; // ability
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append(card.getName()).append(" - ").append(c.getController());
|
|
||||||
sb.append(" played a green spell, remove a -1/-1 counter from Noxious Hatchling.");
|
|
||||||
ability.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
AllZone.Stack.add(ability);
|
|
||||||
}
|
|
||||||
}//if
|
|
||||||
|
|
||||||
|
|
||||||
}// Noxious Hatchling
|
|
||||||
|
|
||||||
public static void playCard_Sturdy_Hatchling(Card c) {
|
|
||||||
final Player controller = c.getController();
|
|
||||||
|
|
||||||
final PlayerZone play = AllZone.getZone(Constant.Zone.Battlefield, controller);
|
|
||||||
|
|
||||||
CardList list = new CardList();
|
|
||||||
list.addAll(play.getCards());
|
|
||||||
|
|
||||||
list = list.getName("Sturdy Hatchling");
|
|
||||||
|
|
||||||
if(list.size() > 0) {
|
|
||||||
if(c.isBlue()) {
|
|
||||||
for(int i = 0; i < list.size(); i++) {
|
|
||||||
final Card card = list.get(i);
|
|
||||||
|
|
||||||
Ability ability2 = new Ability(card, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
if(card.getCounters(Counters.M1M1) > 0) card.subtractCounter(Counters.M1M1, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
}; // ability2
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append(card.getName()).append(" - ").append(c.getController());
|
|
||||||
sb.append(" played a blue spell, remove a -1/-1 counter from Sturdy Hatchling.");
|
|
||||||
ability2.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
|
||||||
}
|
|
||||||
}//if
|
|
||||||
}
|
|
||||||
|
|
||||||
if(c.isGreen()) {
|
|
||||||
for(int i = 0; i < list.size(); i++) {
|
|
||||||
final Card card = list.get(i);
|
|
||||||
|
|
||||||
Ability ability = new Ability(card, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
if(card.getCounters(Counters.M1M1) > 0) card.subtractCounter(Counters.M1M1, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
}; // ability
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append(card.getName()).append(" - ").append(c.getController());
|
|
||||||
sb.append(" played a green spell, remove a -1/-1 counter from Sturdy Hatchling.");
|
|
||||||
ability.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
AllZone.Stack.add(ability);
|
|
||||||
}
|
|
||||||
}//if
|
|
||||||
|
|
||||||
|
|
||||||
}// Sturdy Hatchling
|
|
||||||
|
|
||||||
public static void playCard_Voracious_Hatchling(Card c) {
|
|
||||||
final Player controller = c.getController();
|
|
||||||
|
|
||||||
final PlayerZone play = AllZone.getZone(Constant.Zone.Battlefield, controller);
|
|
||||||
|
|
||||||
CardList list = new CardList();
|
|
||||||
list.addAll(play.getCards());
|
|
||||||
|
|
||||||
list = list.getName("Voracious Hatchling");
|
|
||||||
|
|
||||||
if(list.size() > 0) {
|
|
||||||
if(c.isBlack()) {
|
|
||||||
for(int i = 0; i < list.size(); i++) {
|
|
||||||
final Card card = list.get(i);
|
|
||||||
|
|
||||||
Ability ability2 = new Ability(card, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
if(card.getCounters(Counters.M1M1) > 0) card.subtractCounter(Counters.M1M1, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
}; // ability2
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append(card.getName()).append(" - ").append(c.getController());
|
|
||||||
sb.append(" played a black spell, remove a -1/-1 counter from Voracious Hatchling.");
|
|
||||||
ability2.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
|
||||||
}
|
|
||||||
}//if
|
|
||||||
}
|
|
||||||
|
|
||||||
if(c.isWhite()) {
|
|
||||||
for(int i = 0; i < list.size(); i++) {
|
|
||||||
final Card card = list.get(i);
|
|
||||||
|
|
||||||
Ability ability = new Ability(card, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
if(card.getCounters(Counters.M1M1) > 0) card.subtractCounter(Counters.M1M1, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
}; // ability
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append(card.getName()).append(" - ").append(c.getController());
|
|
||||||
sb.append(" played a white spell, remove a -1/-1 counter from Voracious Hatchling.");
|
|
||||||
ability.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
AllZone.Stack.add(ability);
|
|
||||||
}
|
|
||||||
}//if
|
|
||||||
|
|
||||||
|
|
||||||
}// Voracious Hatchling
|
|
||||||
|
|
||||||
public static void playCard_Witch_Maw_Nephilim(Card c) {
|
public static void playCard_Witch_Maw_Nephilim(Card c) {
|
||||||
final Player controller = c.getController();
|
final Player controller = c.getController();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user