mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fix for suspend that broke just before submission.
This commit is contained in:
@@ -3445,7 +3445,7 @@ public class CardFactory implements NewConstants {
|
|||||||
if(n != -1) {
|
if(n != -1) {
|
||||||
String parse = card.getKeyword().get(n).toString();
|
String parse = card.getKeyword().get(n).toString();
|
||||||
card.removeIntrinsicKeyword(parse);
|
card.removeIntrinsicKeyword(parse);
|
||||||
|
card.setSuspend(true);
|
||||||
String k[] = parse.split(":");
|
String k[] = parse.split(":");
|
||||||
|
|
||||||
final int timeCounters = Integer.parseInt(k[1]);
|
final int timeCounters = Integer.parseInt(k[1]);
|
||||||
|
|||||||
@@ -1583,7 +1583,7 @@ public class CardFactoryUtil {
|
|||||||
suspend.setDescription("Suspend " +suspendCounters + ": "+ suspendCost);
|
suspend.setDescription("Suspend " +suspendCounters + ": "+ suspendCost);
|
||||||
suspend.setStackDescription(sourceCard + " suspending for " + suspendCounters + " turns.)");
|
suspend.setStackDescription(sourceCard + " suspending for " + suspendCounters + " turns.)");
|
||||||
return suspend;
|
return suspend;
|
||||||
}//ability_cycle()
|
}//ability_suspend()
|
||||||
|
|
||||||
public static SpellAbility eqPump_Equip(final Card sourceCard, final int Power, final int Tough, final String[] extrinsicKeywords, final String Manacost) {
|
public static SpellAbility eqPump_Equip(final Card sourceCard, final int Power, final int Tough, final String[] extrinsicKeywords, final String Manacost) {
|
||||||
final Ability equip = new Ability(sourceCard, Manacost) {
|
final Ability equip = new Ability(sourceCard, Manacost) {
|
||||||
|
|||||||
@@ -3258,11 +3258,7 @@ public class GameActionUtil {
|
|||||||
//list = list.getType("Creature");
|
//list = list.getType("Creature");
|
||||||
list = list.filter(new CardListFilter() {
|
list = list.filter(new CardListFilter() {
|
||||||
public boolean addCard(Card c) {
|
public boolean addCard(Card c) {
|
||||||
for(String s : c.getKeyword()){
|
return c.hasSuspend();
|
||||||
if (s.contains("Suspend"))
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user