mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
fix bug in mana express choice from colorset
This commit is contained in:
@@ -236,7 +236,7 @@ public class AbilityManaPart implements java.io.Serializable {
|
||||
if(cs.hasWhite()) sb.append("W ");
|
||||
if(cs.hasRed()) sb.append("R ");
|
||||
if(cs.hasGreen()) sb.append("G ");
|
||||
this.lastExpressChoice = cs.toString();
|
||||
this.lastExpressChoice = sb.toString().trim();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -187,8 +187,11 @@ public abstract class InputPayManaBase extends InputSyncronizedBase implements I
|
||||
subchosen = subchosen.getSubAbility();
|
||||
}
|
||||
|
||||
// save off color needed for use by any mana and reflected mana
|
||||
subchosen.getManaPart().setExpressChoice(ColorSet.fromMask(colorCanUse));
|
||||
if( 0 == colorNeeded ) {
|
||||
subchosen.getManaPart().setExpressChoice(ColorSet.fromMask(colorCanUse));
|
||||
} else {
|
||||
subchosen.getManaPart().setExpressChoice(ColorSet.fromMask(colorNeeded));
|
||||
}
|
||||
|
||||
// System.out.println("Chosen sa=" + chosen + " of " + chosen.getSourceCard() + " to pay mana");
|
||||
Runnable proc = new Runnable() {
|
||||
|
||||
Reference in New Issue
Block a user