mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
*UnlessCost$ now handles X costs.
*Added Circular Logic Condescend Disruptive Pitmage Evasive Action Ixidor's Will Oppressive Will Override Overrule Spell Contortion Spell Syphon Syncopate
This commit is contained in:
@@ -48,7 +48,7 @@ public class AbilityFactory_CounterMagic {
|
||||
else splitExtraActions = new String[] {"None"};
|
||||
|
||||
if(params.containsKey("UnlessCost"))
|
||||
unlessCost = params.get("UnlessCost");
|
||||
unlessCost = params.get("UnlessCost").trim();
|
||||
|
||||
tgt[0] = null;
|
||||
}
|
||||
@@ -125,7 +125,13 @@ public class AbilityFactory_CounterMagic {
|
||||
System.out.println("Send countered spell to " + destination);
|
||||
|
||||
if(unlessCost != null) {
|
||||
Ability ability = new Ability(af.getHostCard(), unlessCost) {
|
||||
String unlessCostFinal = unlessCost;
|
||||
if(unlessCost.equals("X"))
|
||||
{
|
||||
unlessCostFinal = Integer.toString(CardFactoryUtil.xCount(af.getHostCard(), af.getHostCard().getSVar("X")));
|
||||
}
|
||||
|
||||
Ability ability = new Ability(af.getHostCard(), unlessCostFinal) {
|
||||
@Override
|
||||
public void resolve() {
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user