mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Gilt-Leaf Archdruid converted to triggers
This commit is contained in:
@@ -3,6 +3,8 @@ ManaCost:3 G G
|
||||
Types:Creature Elf Druid
|
||||
Text:Whenever you cast a Druid spell, you may draw a card.
|
||||
PT:3/3
|
||||
T:Mode$SpellCast | ValidCard$ Card.Druid+YouCtrl | Execute$ TrigDraw | TriggerZones$ Battlefield | Optional$ True | TriggerDescription$ Whenever you cast a Druid spell, you may draw a card.
|
||||
SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ 1
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/gilt_leaf_archdruid.jpg
|
||||
SetInfo:MOR|Rare|http://magiccards.info/scans/en/mt/124.jpg
|
||||
|
||||
@@ -502,7 +502,6 @@ public class GameActionUtil {
|
||||
playCard_Gelectrode(c);
|
||||
playCard_Standstill(c);
|
||||
playCard_SolKanar(c);
|
||||
playCard_Gilt_Leaf_Archdruid(c);
|
||||
playCard_Reki(c);
|
||||
playCard_Vedalken_Archmage(c);
|
||||
playCard_Sigil_of_the_Empty_Throne(c);
|
||||
@@ -2108,14 +2107,7 @@ public class GameActionUtil {
|
||||
}// Gelectrode
|
||||
|
||||
public static void playCard_Forced_Fruition(Card c) {
|
||||
PlayerZone hplay = AllZone.getZone(Constant.Zone.Battlefield, AllZone.HumanPlayer);
|
||||
PlayerZone cplay = AllZone.getZone(Constant.Zone.Battlefield, AllZone.ComputerPlayer);
|
||||
|
||||
CardList list = new CardList();
|
||||
list.addAll(hplay.getCards());
|
||||
list.addAll(cplay.getCards());
|
||||
|
||||
list = list.getName("Forced Fruition");
|
||||
CardList list = AllZoneUtil.getCardsInPlay("Forced Fruition");
|
||||
|
||||
for(int i = 0; i < list.size(); i++) {
|
||||
final Card card = list.get(i);
|
||||
@@ -2255,32 +2247,6 @@ public class GameActionUtil {
|
||||
}// playCard_Enchantress_Draw()
|
||||
*/
|
||||
|
||||
public static void playCard_Gilt_Leaf_Archdruid(Card c) {
|
||||
CardList list = AllZoneUtil.getPlayerCardsInPlay(c.getController(), "Gilt-Leaf Archdruid");
|
||||
|
||||
if(c.getType().contains("Druid") || c.getKeyword().contains("Changeling")) {
|
||||
for(int i = 0; i < list.size(); i++) {
|
||||
final Card card = list.get(0);
|
||||
|
||||
Ability ability2 = new Ability(card, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
// draws a card
|
||||
card.getController().drawCard();
|
||||
}
|
||||
}; // ability2
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||
sb.append(" plays a Druid spell and draws a card");
|
||||
ability2.setStackDescription(sb.toString());
|
||||
|
||||
AllZone.Stack.add(ability2);
|
||||
|
||||
} // for
|
||||
}// if druid
|
||||
}
|
||||
|
||||
public static void playCard_Reki(Card c) {
|
||||
CardList list = AllZoneUtil.getPlayerCardsInPlay(c.getController(), "Reki, the History of Kamigawa");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user