mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +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) {
|
||||
String parse = card.getKeyword().get(n).toString();
|
||||
card.removeIntrinsicKeyword(parse);
|
||||
|
||||
card.setSuspend(true);
|
||||
String k[] = parse.split(":");
|
||||
|
||||
final int timeCounters = Integer.parseInt(k[1]);
|
||||
|
||||
@@ -1583,7 +1583,7 @@ public class CardFactoryUtil {
|
||||
suspend.setDescription("Suspend " +suspendCounters + ": "+ suspendCost);
|
||||
suspend.setStackDescription(sourceCard + " suspending for " + suspendCounters + " turns.)");
|
||||
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) {
|
||||
final Ability equip = new Ability(sourceCard, Manacost) {
|
||||
|
||||
@@ -3258,11 +3258,7 @@ public class GameActionUtil {
|
||||
//list = list.getType("Creature");
|
||||
list = list.filter(new CardListFilter() {
|
||||
public boolean addCard(Card c) {
|
||||
for(String s : c.getKeyword()){
|
||||
if (s.contains("Suspend"))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return c.hasSuspend();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user