mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
- Fixed tapXType costs not canceling properly.
This commit is contained in:
@@ -1800,8 +1800,10 @@ public final class GameActionUtil {
|
||||
newoacs.addAll(sa.getOptionalAdditionalCosts());
|
||||
newSA.setOptionalAdditionalCosts(newoacs);
|
||||
newSA.addOptionalAdditionalCosts("Buyback");
|
||||
if (newSA.canPlay()) {
|
||||
newAbilities.add(newAbilities.size(), newSA);
|
||||
}
|
||||
}
|
||||
abilities.addAll(0, newAbilities);
|
||||
newAbilities.clear();
|
||||
} else if (keyword.startsWith("Kicker")) {
|
||||
@@ -1816,8 +1818,10 @@ public final class GameActionUtil {
|
||||
newoacs.addAll(sa.getOptionalAdditionalCosts());
|
||||
newSA.setOptionalAdditionalCosts(newoacs);
|
||||
newSA.addOptionalAdditionalCosts(keyword);
|
||||
if (newSA.canPlay()) {
|
||||
newAbilities.add(newAbilities.size(), newSA);
|
||||
}
|
||||
}
|
||||
abilities.addAll(0, newAbilities);
|
||||
newAbilities.clear();
|
||||
}
|
||||
|
||||
@@ -237,9 +237,9 @@ public class CostTapType extends CostPartWithList {
|
||||
this.done();
|
||||
}
|
||||
|
||||
if (cardList.size() == 0) {
|
||||
this.stop();
|
||||
}
|
||||
/*if (cardList.size() == 0) {
|
||||
this.cancel();
|
||||
}*/
|
||||
|
||||
final int left = nCards - this.nTapped;
|
||||
CMatchUI.SINGLETON_INSTANCE
|
||||
|
||||
@@ -163,7 +163,6 @@ public abstract class Spell extends SpellAbility implements java.io.Serializable
|
||||
} catch (final NumberFormatException e) {
|
||||
y = CardFactoryUtil.xCount(card, card.getSVar(compareTo));
|
||||
}
|
||||
System.out.println("NeedsToPlayVar: " + sVar + "(" + x + ")" + comparator + "(" + y + ")");
|
||||
if (!AllZoneUtil.compare(x, comparator, y)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user