mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Merge branch 'newPerspectivesCyclingFix' into 'master'
GameActionUtil: fix CyclingForZero Closes #653 See merge request core-developers/forge!870
This commit is contained in:
@@ -174,7 +174,8 @@ public final class GameActionUtil {
|
||||
}
|
||||
|
||||
if (sa.isCycling() && activator.hasKeyword("CyclingForZero")) {
|
||||
final SpellAbility newSA = sa.copyWithNoManaCost();
|
||||
// set the cost to this directly to buypass non mana cost
|
||||
final SpellAbility newSA = sa.copyWithDefinedCost("Discard<1/CARDNAME>");
|
||||
newSA.setBasicSpell(false);
|
||||
newSA.getMapParams().put("CostDesc", ManaCostParser.parse("0"));
|
||||
// makes new SpellDescription
|
||||
|
||||
@@ -900,6 +900,10 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
return newSA;
|
||||
}
|
||||
|
||||
public SpellAbility copyWithDefinedCost(String abCost) {
|
||||
return copyWithDefinedCost(new Cost(abCost, isAbility()));
|
||||
}
|
||||
|
||||
public boolean isTrigger() {
|
||||
return trigger;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user