mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
added Infused Arrows and Engineered Explosives
This commit is contained in:
2
.gitattributes
vendored
2
.gitattributes
vendored
@@ -2487,6 +2487,7 @@ res/cardsfolder/e/energy_storm.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/e/energy_tap.txt svneol=native#text/plain
|
res/cardsfolder/e/energy_tap.txt svneol=native#text/plain
|
||||||
res/cardsfolder/e/enervate.txt svneol=native#text/plain
|
res/cardsfolder/e/enervate.txt svneol=native#text/plain
|
||||||
res/cardsfolder/e/enfeeblement.txt svneol=native#text/plain
|
res/cardsfolder/e/enfeeblement.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/e/engineered_explosives.txt -text
|
||||||
res/cardsfolder/e/engineered_plague.txt svneol=native#text/plain
|
res/cardsfolder/e/engineered_plague.txt svneol=native#text/plain
|
||||||
res/cardsfolder/e/engulfing_flames.txt svneol=native#text/plain
|
res/cardsfolder/e/engulfing_flames.txt svneol=native#text/plain
|
||||||
res/cardsfolder/e/engulfing_slagwurm.txt svneol=native#text/plain
|
res/cardsfolder/e/engulfing_slagwurm.txt svneol=native#text/plain
|
||||||
@@ -4045,6 +4046,7 @@ res/cardsfolder/i/infinite_hourglass.txt -text
|
|||||||
res/cardsfolder/i/inflame.txt svneol=native#text/plain
|
res/cardsfolder/i/inflame.txt svneol=native#text/plain
|
||||||
res/cardsfolder/i/information_dealer.txt svneol=native#text/plain
|
res/cardsfolder/i/information_dealer.txt svneol=native#text/plain
|
||||||
res/cardsfolder/i/infuse.txt svneol=native#text/plain
|
res/cardsfolder/i/infuse.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/i/infused_arrows.txt -text
|
||||||
res/cardsfolder/i/ingenious_thief.txt svneol=native#text/plain
|
res/cardsfolder/i/ingenious_thief.txt svneol=native#text/plain
|
||||||
res/cardsfolder/i/ingot_chewer.txt svneol=native#text/plain
|
res/cardsfolder/i/ingot_chewer.txt svneol=native#text/plain
|
||||||
res/cardsfolder/i/inheritance.txt svneol=native#text/plain
|
res/cardsfolder/i/inheritance.txt svneol=native#text/plain
|
||||||
|
|||||||
11
res/cardsfolder/e/engineered_explosives.txt
Normal file
11
res/cardsfolder/e/engineered_explosives.txt
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Name:Engineered Explosives
|
||||||
|
ManaCost:X
|
||||||
|
Types:Artifact
|
||||||
|
Text:no text
|
||||||
|
K:Sunburst
|
||||||
|
A:AB$ DestroyAll | Cost$ T Sac<1/CARDNAME> | ValidCards$ Permanent.nonLand+cmcEQX | SpellDescription$ Destroy each nonland permanent with converted mana cost equal to the number of charge counters on CARDNAME.
|
||||||
|
SVar:X:Count$CardCounters.CHARGE
|
||||||
|
SVar:Rarity:Rare
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/engineered_explosives.jpg
|
||||||
|
SetInfo:5DN|Rare|http://magiccards.info/scans/en/5dn/118.jpg
|
||||||
|
End
|
||||||
14
res/cardsfolder/i/infused_arrows.txt
Normal file
14
res/cardsfolder/i/infused_arrows.txt
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Name:Infused Arrows
|
||||||
|
ManaCost:4
|
||||||
|
Types:Artifact
|
||||||
|
Text:no text
|
||||||
|
K:Sunburst
|
||||||
|
#ChosenX SVar created by Cost payment
|
||||||
|
A:AB$ Pump | Cost$ T SubCounter<X/CHARGE> | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ -ChosenX | NumDef$ -ChosenX | SpellDescription$ Target creature gets -X/-X until end of turn.
|
||||||
|
SVar:X:XChoice
|
||||||
|
SVar:RemAIDeck:True
|
||||||
|
SVar:RemRandomDeck:True
|
||||||
|
SVar:Rarity:Uncommon
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/infused_arrows.jpg
|
||||||
|
SetInfo:5DN|Uncommon|http://magiccards.info/scans/en/5dn/133.jpg
|
||||||
|
End
|
||||||
@@ -239,6 +239,7 @@ public class CostMana extends CostPart {
|
|||||||
final Input payX = new Input() {
|
final Input payX = new Input() {
|
||||||
private static final long serialVersionUID = -6900234444347364050L;
|
private static final long serialVersionUID = -6900234444347364050L;
|
||||||
private int xPaid = 0;
|
private int xPaid = 0;
|
||||||
|
private String colorsPaid = "";
|
||||||
private ManaCost manaCost = new ManaCost(Integer.toString(numX));
|
private ManaCost manaCost = new ManaCost(Integer.toString(numX));
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -270,6 +271,9 @@ public class CostMana extends CostPart {
|
|||||||
|
|
||||||
this.manaCost = InputPayManaCostUtil.activateManaAbility(sa, card, this.manaCost);
|
this.manaCost = InputPayManaCostUtil.activateManaAbility(sa, card, this.manaCost);
|
||||||
if (this.manaCost.isPaid()) {
|
if (this.manaCost.isPaid()) {
|
||||||
|
if (!colorsPaid.contains(this.manaCost.getColorsPaid())) {
|
||||||
|
colorsPaid += this.manaCost.getColorsPaid();
|
||||||
|
}
|
||||||
this.manaCost = new ManaCost(Integer.toString(numX));
|
this.manaCost = new ManaCost(Integer.toString(numX));
|
||||||
this.xPaid++;
|
this.xPaid++;
|
||||||
}
|
}
|
||||||
@@ -291,6 +295,8 @@ public class CostMana extends CostPart {
|
|||||||
this.stop();
|
this.stop();
|
||||||
payment.getCard().setXManaCostPaid(this.xPaid);
|
payment.getCard().setXManaCostPaid(this.xPaid);
|
||||||
payment.paidCost(costMana);
|
payment.paidCost(costMana);
|
||||||
|
payment.getCard().setColorsPaid(colorsPaid);
|
||||||
|
payment.getCard().setSunburstValue(colorsPaid.length());
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user