mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- CheckStyle.
This commit is contained in:
@@ -89,12 +89,11 @@ public final class AllZone {
|
|||||||
/** Constant <code>CARD_RATINGS</code>. */
|
/** Constant <code>CARD_RATINGS</code>. */
|
||||||
private static CardRatings cardRatings = new CardRatings();
|
private static CardRatings cardRatings = new CardRatings();
|
||||||
|
|
||||||
|
|
||||||
private static CardCollections collections;
|
private static CardCollections collections;
|
||||||
|
|
||||||
public static final CardCollections getDecks() {
|
public static final CardCollections getDecks() {
|
||||||
if ( null == collections )
|
if (null == collections) {
|
||||||
{
|
|
||||||
collections = new CardCollections(ForgeProps.getFile(NewConstants.NEW_DECKS));
|
collections = new CardCollections(ForgeProps.getFile(NewConstants.NEW_DECKS));
|
||||||
}
|
}
|
||||||
return collections;
|
return collections;
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* checkZoneRestrictions.
|
* checkZoneRestrictions.
|
||||||
@@ -283,7 +283,7 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|
|||||||
if (this.isSorcerySpeed() && !PhaseHandler.canCastSorcery(activator)) {
|
if (this.isSorcerySpeed() && !PhaseHandler.canCastSorcery(activator)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!checkTimingRestrictions(c, sa)) {
|
if (!checkTimingRestrictions(c, sa)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -568,7 +568,7 @@ public class ControlConstructed {
|
|||||||
deckNames = new ArrayList<String>();
|
deckNames = new ArrayList<String>();
|
||||||
deckNames.add(0, "Random");
|
deckNames.add(0, "Random");
|
||||||
|
|
||||||
|
|
||||||
deckNames.addAll(AllZone.getDecks().getConstructed().getNames());
|
deckNames.addAll(AllZone.getDecks().getConstructed().getNames());
|
||||||
|
|
||||||
// No pre-constructed decks?
|
// No pre-constructed decks?
|
||||||
|
|||||||
Reference in New Issue
Block a user