mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Cleanup.
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user