- Fixed Exalted Dragon.

This commit is contained in:
Sloth
2013-08-18 08:12:48 +00:00
parent 03b37b049b
commit e7a143e181

View File

@@ -304,11 +304,11 @@ public class HumanPlay {
}
final String orString = prompt != null ? "" : " (or: " + sourceAbility.getStackDescription() + ")";
if (parts.isEmpty() || costPart.getAmount().equals("0")) {
if (parts.isEmpty() || (costPart.getAmount().equals("0") && parts.size() < 2)) {
return GuiDialog.confirm(source, "Do you want to pay 0?" + orString);
}
// 0 mana costs were slipping through because CostPart.getAmount returns 1
else if (costPart instanceof CostPartMana ) {
else if (costPart instanceof CostPartMana && parts.size() < 2) {
if (((CostPartMana) costPart).getManaToPay().isZero()) {
return GuiDialog.confirm(source, "Do you want to pay 0?" + orString);
}