mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Deleted the "1, Sacrifice CARDNAME: Draw a card." code from CardFactory.java and CardFactoryUtil.java. Converted the cards using this keyword to abDrawCards 1 Sac<1/CARDNAME>:1:Draw a card. Impacts the 5 Spellbombs and Grave-Shell Scarab.
This commit is contained in:
@@ -2,7 +2,7 @@ Name:AEther Spellbomb
|
|||||||
ManaCost:1
|
ManaCost:1
|
||||||
Types:Artifact
|
Types:Artifact
|
||||||
Text:no text
|
Text:no text
|
||||||
K:1, Sacrifice CARDNAME: Draw a card.
|
K:abDrawCards 1 Sac<1/CARDNAME>:1:Draw a card.:AEther Spellbomb - Controller draws a card.
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Common
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/aether_spellbomb.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/aether_spellbomb.jpg
|
||||||
End
|
End
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ ManaCost:2 B G G
|
|||||||
Types:Creature Insect
|
Types:Creature Insect
|
||||||
Text:no text
|
Text:no text
|
||||||
PT:4/4
|
PT:4/4
|
||||||
K:1, Sacrifice CARDNAME: Draw a card.
|
K:abDrawCards 1 Sac<1/CARDNAME>:1:Draw a card.:Grave-Shell Scarab - Controller draws a card.
|
||||||
K:Dredge 1
|
K:Dredge 1
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/grave_shell_scarab.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/grave_shell_scarab.jpg
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ Name:Lifespark Spellbomb
|
|||||||
ManaCost:1
|
ManaCost:1
|
||||||
Types:Artifact
|
Types:Artifact
|
||||||
Text:no text
|
Text:no text
|
||||||
K:1, Sacrifice CARDNAME: Draw a card.
|
K:abDrawCards 1 Sac<1/CARDNAME>:1:Draw a card.:Lifespark Spellbomb - Controller draws a card.
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Common
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/lifespark_spellbomb.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/lifespark_spellbomb.jpg
|
||||||
End
|
End
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ Name:Necrogen Spellbomb
|
|||||||
ManaCost:1
|
ManaCost:1
|
||||||
Types:Artifact
|
Types:Artifact
|
||||||
Text:no text
|
Text:no text
|
||||||
K:1, Sacrifice CARDNAME: Draw a card.
|
K:abDrawCards 1 Sac<1/CARDNAME>:1:Draw a card.:Necrogen Spellbomb - Controller draws a card.
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Common
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/necrogen_spellbomb.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/necrogen_spellbomb.jpg
|
||||||
End
|
End
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ Name:Pyrite Spellbomb
|
|||||||
ManaCost:1
|
ManaCost:1
|
||||||
Types:Artifact
|
Types:Artifact
|
||||||
Text:no text
|
Text:no text
|
||||||
K:1, Sacrifice CARDNAME: Draw a card.
|
K:abDrawCards 1 Sac<1/CARDNAME>:1:Draw a card.:Pyrite Spellbomb - Controller draws a card.
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Common
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/pyrite_spellbomb.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/pyrite_spellbomb.jpg
|
||||||
End
|
End
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ Name:Sunbeam Spellbomb
|
|||||||
ManaCost:1
|
ManaCost:1
|
||||||
Types:Artifact
|
Types:Artifact
|
||||||
Text:no text
|
Text:no text
|
||||||
K:1, Sacrifice CARDNAME: Draw a card.
|
K:abDrawCards 1 Sac<1/CARDNAME>:1:Draw a card.:Sunbeam Spellbomb - Controller draws a card.
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Common
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/sunbeam_spellbomb.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/sunbeam_spellbomb.jpg
|
||||||
End
|
End
|
||||||
|
|||||||
@@ -4958,16 +4958,6 @@ public class CardFactory implements NewConstants {
|
|||||||
} // if etbCounter
|
} // if etbCounter
|
||||||
|
|
||||||
|
|
||||||
if(hasKeyword(card, "1, Sacrifice CARDNAME: Draw a card.") != -1) {
|
|
||||||
int n = hasKeyword(card, "1, Sacrifice CARDNAME: Draw a card.");
|
|
||||||
if(n != -1) {
|
|
||||||
String parse = card.getKeyword().get(n).toString();
|
|
||||||
card.removeIntrinsicKeyword(parse);
|
|
||||||
|
|
||||||
card.addSpellAbility(CardFactoryUtil.ability_Spellbomb(card));
|
|
||||||
}
|
|
||||||
}//Spellbomb
|
|
||||||
|
|
||||||
// Generic target creature pump
|
// Generic target creature pump
|
||||||
if(hasKeyword(card, "spPumpTgt") != -1) {
|
if(hasKeyword(card, "spPumpTgt") != -1) {
|
||||||
int n = hasKeyword(card, "spPumpTgt");
|
int n = hasKeyword(card, "spPumpTgt");
|
||||||
|
|||||||
@@ -1116,31 +1116,6 @@ public class CardFactoryUtil {
|
|||||||
return morph_down;
|
return morph_down;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static SpellAbility ability_Spellbomb(final Card sourceCard) {
|
|
||||||
final SpellAbility ability = new Ability(sourceCard, "1") {
|
|
||||||
@Override
|
|
||||||
public boolean canPlay() {
|
|
||||||
return AllZone.GameAction.isCardInPlay(sourceCard)
|
|
||||||
&& !AllZone.Stack.getSourceCards().contains(sourceCard);//in play and not already activated(Sac cost problems)
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean canPlayAI() {
|
|
||||||
return (AllZone.Computer_Hand.size() < 4) && (AllZone.Computer_Library.size() > 0)
|
|
||||||
&& MyRandom.random.nextBoolean();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
AllZone.GameAction.drawCard(sourceCard.getController());
|
|
||||||
AllZone.GameAction.sacrifice(getSourceCard());
|
|
||||||
}
|
|
||||||
};
|
|
||||||
ability.setDescription("1, Sacrifice " + sourceCard.getName() + ": Draw a card.");
|
|
||||||
ability.setStackDescription(sourceCard.getName() + " - Draw a card.");
|
|
||||||
return ability;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Ability ability_Morph_Up(final Card sourceCard, String cost, String orgManaCost, int a, int d) {
|
public static Ability ability_Morph_Up(final Card sourceCard, String cost, String orgManaCost, int a, int d) {
|
||||||
//final String player = sourceCard.getController();
|
//final String player = sourceCard.getController();
|
||||||
//final String manaCost = cost;
|
//final String manaCost = cost;
|
||||||
|
|||||||
Reference in New Issue
Block a user