mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- CheckStyle.
This commit is contained in:
@@ -295,7 +295,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
public final void setFlip(final boolean isFlip0) {
|
public final void setFlip(final boolean isFlip0) {
|
||||||
this.isFlip = isFlip0;
|
this.isFlip = isFlip0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if this is transformable (i.e. Licids.)
|
* Checks if this is transformable (i.e. Licids.)
|
||||||
*
|
*
|
||||||
@@ -304,7 +304,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
public final String isTransformable() {
|
public final String isTransformable() {
|
||||||
return this.otherTransformable;
|
return this.otherTransformable;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets wether or not this card is transformable, but non-flip and not doublefaced.
|
* Sets wether or not this card is transformable, but non-flip and not doublefaced.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -788,11 +788,11 @@ public class GameAction {
|
|||||||
public final void checkStateEffects() {
|
public final void checkStateEffects() {
|
||||||
this.checkStateEffects(false);
|
this.checkStateEffects(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void checkStaticAbilities() {
|
public final void checkStaticAbilities() {
|
||||||
// remove old effects
|
// remove old effects
|
||||||
AllZone.getStaticEffects().clearStaticEffects();
|
AllZone.getStaticEffects().clearStaticEffects();
|
||||||
|
|
||||||
// search for cards with static abilities
|
// search for cards with static abilities
|
||||||
final CardList allCards = AllZoneUtil.getCardsInGame();
|
final CardList allCards = AllZoneUtil.getCardsInGame();
|
||||||
final CardList cardsWithStAbs = new CardList();
|
final CardList cardsWithStAbs = new CardList();
|
||||||
@@ -804,7 +804,7 @@ public class GameAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cardsWithStAbs.reverse(); // roughly timestamp order
|
cardsWithStAbs.reverse(); // roughly timestamp order
|
||||||
|
|
||||||
// apply continuous effects
|
// apply continuous effects
|
||||||
for (int layer = 4; layer < 11; layer++) {
|
for (int layer = 4; layer < 11; layer++) {
|
||||||
for (final Card card : cardsWithStAbs) {
|
for (final Card card : cardsWithStAbs) {
|
||||||
@@ -957,7 +957,7 @@ public class GameAction {
|
|||||||
} // if isAura
|
} // if isAura
|
||||||
|
|
||||||
if (c.isCreature()) {
|
if (c.isCreature()) {
|
||||||
if(c.isEnchanting()) {
|
if (c.isEnchanting()) {
|
||||||
c.unEnchantEntity(c.getEnchanting());
|
c.unEnchantEntity(c.getEnchanting());
|
||||||
checkAgain = true;
|
checkAgain = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public class StaticAbilityContinuous {
|
|||||||
*
|
*
|
||||||
* @param stAb
|
* @param stAb
|
||||||
* a StaticAbility
|
* a StaticAbility
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static void applyContinuousAbility(final StaticAbility stAb) {
|
public static void applyContinuousAbility(final StaticAbility stAb) {
|
||||||
final HashMap<String, String> params = stAb.getMapParams();
|
final HashMap<String, String> params = stAb.getMapParams();
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ public class CardPanelHeavy extends CardPanelBase {
|
|||||||
if (c.isFlip()) {
|
if (c.isFlip()) {
|
||||||
this.changeStateButton.setVisible(true);
|
this.changeStateButton.setVisible(true);
|
||||||
this.changeStateButton.setText("Flip");
|
this.changeStateButton.setText("Flip");
|
||||||
} else if(c.isDoubleFaced()) {
|
} else if (c.isDoubleFaced()) {
|
||||||
this.changeStateButton.setVisible(true);
|
this.changeStateButton.setVisible(true);
|
||||||
this.changeStateButton.setText("Transform");
|
this.changeStateButton.setText("Transform");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ public class CardPanelLite extends CardPanelBase {
|
|||||||
if (c.isFlip()) {
|
if (c.isFlip()) {
|
||||||
this.bChangeState.setVisible(true);
|
this.bChangeState.setVisible(true);
|
||||||
this.bChangeState.setText("Flip");
|
this.bChangeState.setText("Flip");
|
||||||
} else if(c.isDoubleFaced()) {
|
} else if (c.isDoubleFaced()) {
|
||||||
this.bChangeState.setVisible(true);
|
this.bChangeState.setVisible(true);
|
||||||
this.bChangeState.setText("Transform");
|
this.bChangeState.setText("Transform");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user