mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Cleanup.
This commit is contained in:
@@ -542,7 +542,7 @@ public final class GameActionUtil {
|
||||
}
|
||||
|
||||
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;
|
||||
} else
|
||||
throw new RuntimeException("GameActionUtil.payCostDuringAbilityResolve - An unhandled type of cost was met: " + part.getClass());
|
||||
|
||||
@@ -49,7 +49,7 @@ public enum CPicture implements ICDoc {
|
||||
*/
|
||||
public void showCard(final Card c, boolean showFlipped) {
|
||||
cameFaceDown = c.isFaceDown() && c.canBeShownTo(Singletons.getControl().getPlayer());
|
||||
canFlip = c != null && (c.isDoubleFaced() || c.isFlipCard() || cameFaceDown);
|
||||
canFlip = c.isDoubleFaced() || c.isFlipCard() || cameFaceDown;
|
||||
currentCard = c;
|
||||
flipped = canFlip && (c.getCurState() == CardCharacteristicName.Transformed ||
|
||||
c.getCurState() == CardCharacteristicName.Flipped || c.getCurState() == CardCharacteristicName.FaceDown);
|
||||
|
||||
@@ -186,7 +186,7 @@ public enum VStack implements IVDoc<CStack> {
|
||||
parentCell.getBody().add(tar, "w 98%!");
|
||||
stackTARs.add(tar);
|
||||
|
||||
if (spell != null && spell.isOptionalTrigger()) {
|
||||
if (spell.isOptionalTrigger()) {
|
||||
tar.addMouseListener(new MouseAdapter() {
|
||||
@Override
|
||||
public void mousePressed(final MouseEvent e) {
|
||||
|
||||
Reference in New Issue
Block a user