mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
-convert Flight of Fancy to triggers
-retire the keyword "When CARDNAME enters the battlefield, draw two cards."
This commit is contained in:
@@ -4,7 +4,8 @@ Types:Enchantment Aura
|
|||||||
Text:no text
|
Text:no text
|
||||||
K:Enchant creature
|
K:Enchant creature
|
||||||
K:enPump:Flying
|
K:enPump:Flying
|
||||||
K:When CARDNAME enters the battlefield, draw two cards.
|
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDraw | TriggerDescription$ When CARDNAME enters the battlefield, draw two cards.
|
||||||
|
SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ 2
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Common
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/flight_of_fancy.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/flight_of_fancy.jpg
|
||||||
SetInfo:RAV|Common|http://magiccards.info/scans/en/rav/49.jpg
|
SetInfo:RAV|Common|http://magiccards.info/scans/en/rav/49.jpg
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ PT:2/2
|
|||||||
K:Flying
|
K:Flying
|
||||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDraw | TriggerDescription$ When CARDNAME enters the battlefield, draw two cards.
|
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDraw | TriggerDescription$ When CARDNAME enters the battlefield, draw two cards.
|
||||||
K:Evoke:2 U
|
K:Evoke:2 U
|
||||||
SVar:TrigDraw:AB$Draw | Cost$ 0 | NumCards$ 2
|
SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ 2
|
||||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self+evoked | Execute$ TrigSac | Secondary$ True | TriggerDescription$ When CARDNAME enters the battlefield, if you cast it by it's evoke cost, sacrifice it.
|
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self+evoked | Execute$ TrigSac | Secondary$ True | TriggerDescription$ When CARDNAME enters the battlefield, if you cast it by it's evoke cost, sacrifice it.
|
||||||
SVar:TrigSac:AB$Sacrifice | Cost$ 0
|
SVar:TrigSac:AB$Sacrifice | Cost$ 0
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Common
|
||||||
|
|||||||
@@ -4522,20 +4522,13 @@ public class CardFactory implements NewConstants {
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
if (card.getKeyword().contains("When CARDNAME enters the battlefield, draw a card.") ||
|
if (card.getKeyword().contains("When CARDNAME enters the battlefield, draw a card.")) {
|
||||||
card.getKeyword().contains("When CARDNAME enters the battlefield, draw two cards.")) {
|
|
||||||
|
|
||||||
final SpellAbility ability = new Ability(card, "0") {
|
final SpellAbility ability = new Ability(card, "0") {
|
||||||
@Override
|
@Override
|
||||||
public void resolve() {
|
public void resolve() {
|
||||||
int drawCardsNum = 1;
|
card.getController().drawCard();
|
||||||
if (card.getKeyword().contains("When CARDNAME enters the battlefield, draw two cards.")) {
|
}//resolve()
|
||||||
drawCardsNum = 2;
|
|
||||||
}
|
|
||||||
for (int i = 0; i < drawCardsNum; i++) {
|
|
||||||
card.getController().drawCard();
|
|
||||||
}//for loop
|
|
||||||
}//resolve()
|
|
||||||
};//SpellAbility
|
};//SpellAbility
|
||||||
Command intoPlay = new Command() {
|
Command intoPlay = new Command() {
|
||||||
|
|
||||||
@@ -4546,10 +4539,7 @@ public class CardFactory implements NewConstants {
|
|||||||
sb.append(card.getName());
|
sb.append(card.getName());
|
||||||
sb.append(" - ");
|
sb.append(" - ");
|
||||||
sb.append(card.getController());
|
sb.append(card.getController());
|
||||||
sb.append(" draws ");
|
sb.append(" draws a card.");
|
||||||
if (card.getKeyword().contains("When CARDNAME enters the battlefield, draw a card.")) {
|
|
||||||
sb.append("a card.");
|
|
||||||
} else sb.append("two cards.");
|
|
||||||
|
|
||||||
ability.setStackDescription(sb.toString());
|
ability.setStackDescription(sb.toString());
|
||||||
AllZone.Stack.add(ability);
|
AllZone.Stack.add(ability);
|
||||||
|
|||||||
Reference in New Issue
Block a user