- Cleanup.

This commit is contained in:
Sloth
2013-04-16 07:20:34 +00:00
parent 66846b4d0b
commit 6baf8cf43b
3 changed files with 3 additions and 3 deletions

View File

@@ -542,7 +542,7 @@ public final class GameActionUtil {
} }
else if (part instanceof CostPartMana ) { else if (part instanceof CostPartMana ) {
if (!((CostPartMana) part).getManaToPay().equals("0")) // non-zero costs require input if (!((CostPartMana) part).getManaToPay().isZero()) // non-zero costs require input
mayRemovePart = false; mayRemovePart = false;
} else } else
throw new RuntimeException("GameActionUtil.payCostDuringAbilityResolve - An unhandled type of cost was met: " + part.getClass()); throw new RuntimeException("GameActionUtil.payCostDuringAbilityResolve - An unhandled type of cost was met: " + part.getClass());

View File

@@ -49,7 +49,7 @@ public enum CPicture implements ICDoc {
*/ */
public void showCard(final Card c, boolean showFlipped) { public void showCard(final Card c, boolean showFlipped) {
cameFaceDown = c.isFaceDown() && c.canBeShownTo(Singletons.getControl().getPlayer()); cameFaceDown = c.isFaceDown() && c.canBeShownTo(Singletons.getControl().getPlayer());
canFlip = c != null && (c.isDoubleFaced() || c.isFlipCard() || cameFaceDown); canFlip = c.isDoubleFaced() || c.isFlipCard() || cameFaceDown;
currentCard = c; currentCard = c;
flipped = canFlip && (c.getCurState() == CardCharacteristicName.Transformed || flipped = canFlip && (c.getCurState() == CardCharacteristicName.Transformed ||
c.getCurState() == CardCharacteristicName.Flipped || c.getCurState() == CardCharacteristicName.FaceDown); c.getCurState() == CardCharacteristicName.Flipped || c.getCurState() == CardCharacteristicName.FaceDown);

View File

@@ -186,7 +186,7 @@ public enum VStack implements IVDoc<CStack> {
parentCell.getBody().add(tar, "w 98%!"); parentCell.getBody().add(tar, "w 98%!");
stackTARs.add(tar); stackTARs.add(tar);
if (spell != null && spell.isOptionalTrigger()) { if (spell.isOptionalTrigger()) {
tar.addMouseListener(new MouseAdapter() { tar.addMouseListener(new MouseAdapter() {
@Override @Override
public void mousePressed(final MouseEvent e) { public void mousePressed(final MouseEvent e) {