mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Add XChoice to CostDiscard
Convert Firestorm and Vengeful Dreams to Script
This commit is contained in:
@@ -1017,6 +1017,7 @@ public class CardFactory_Instants {
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
/*
|
||||
else if (cardName.equals("Vengeful Dreams")) {
|
||||
final CardList targets = new CardList();
|
||||
final SpellAbility spell = new Spell(card) {
|
||||
@@ -1094,8 +1095,8 @@ public class CardFactory_Instants {
|
||||
|
||||
card.addSpellAbility(spell);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
*/
|
||||
/*
|
||||
//*************** START *********** START **************************
|
||||
else if (cardName.equals("Firestorm")) {
|
||||
final ArrayList<Object> targets = new ArrayList<Object>();
|
||||
@@ -1187,7 +1188,7 @@ public class CardFactory_Instants {
|
||||
|
||||
card.addSpellAbility(spell);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
*/
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if (cardName.equals("Cryptic Command")) {
|
||||
|
||||
@@ -175,6 +175,10 @@ public class CostDiscard extends CostPartWithList {
|
||||
else{
|
||||
Integer c = convertAmount();
|
||||
if (c == null){
|
||||
String sVar = source.getSVar(amount);
|
||||
if (sVar.equals("XChoice")){
|
||||
return false;
|
||||
}
|
||||
c = AbilityFactory.calculateAmount(source, amount, ability);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user