mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Checkstyle.
This commit is contained in:
@@ -1565,11 +1565,11 @@ public class ComputerUtil {
|
||||
}
|
||||
}
|
||||
if (destroy) {
|
||||
if(!AllZone.getGameAction().destroy(c)) {
|
||||
if (!AllZone.getGameAction().destroy(c)) {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
if(!AllZone.getGameAction().sacrifice(c)) {
|
||||
if (!AllZone.getGameAction().sacrifice(c)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3766,7 +3766,8 @@ public class CardFactoryUtil {
|
||||
|
||||
for (final String kw : intrinsicKeywords) {
|
||||
if (kw.startsWith("HIDDEN")) {
|
||||
temp.addExtrinsicKeyword(kw);//extrinsic keywords won't survive the copyStats treatment
|
||||
temp.addExtrinsicKeyword(kw);
|
||||
//extrinsic keywords won't survive the copyStats treatment
|
||||
} else {
|
||||
temp.addIntrinsicKeyword(kw);
|
||||
}
|
||||
|
||||
@@ -1007,7 +1007,7 @@ public class TriggerHandler {
|
||||
regtrig.getHostCard().getName()));
|
||||
buildQuestion.append(")\r\n");
|
||||
if (sa[0].getTriggeringObjects().containsKey("Attacker")) {
|
||||
buildQuestion.append("[Attacker: " +sa[0].getTriggeringObjects().get("Attacker") + "]");
|
||||
buildQuestion.append("[Attacker: " + sa[0].getTriggeringObjects().get("Attacker") + "]");
|
||||
}
|
||||
if (!GameActionUtil.showYesNoDialog(regtrig.getHostCard(), buildQuestion.toString())) {
|
||||
return;
|
||||
|
||||
@@ -192,7 +192,7 @@ public class Generate2ColorDeck {
|
||||
// select cards to build card pools using a mana curve
|
||||
for (int i = 4; i > 0; i--) {
|
||||
|
||||
if (i==1) {
|
||||
if (i == 1) {
|
||||
maxCMC[0] = 20; //the last category is open ended
|
||||
i = 0; // this reduces the number of cards in the last category to 4
|
||||
}
|
||||
@@ -201,7 +201,7 @@ public class Generate2ColorDeck {
|
||||
final CardList sp1CMC = sp1.filter(cmcF);
|
||||
final CardList sp2CMC = sp2.filter(cmcF);
|
||||
|
||||
for (int j = 0; j < i+1; j++) {
|
||||
for (int j = 0; j < i + 1; j++) {
|
||||
Card c = cr1CMC.get(this.r.nextInt(cr1CMC.size()));
|
||||
cr12.add(c);
|
||||
this.cardCounts.put(c.getName(), 0);
|
||||
|
||||
@@ -207,7 +207,7 @@ public class Generate3ColorDeck {
|
||||
|
||||
// select cards to build card pools using a mana curve
|
||||
for (int i = 3; i > 0; i--) {
|
||||
if (i==1) {
|
||||
if (i == 1) {
|
||||
maxCMC[0] = 20; //the last category is open ended
|
||||
i = 0; // this reduces the number of cards in the last category to 6
|
||||
}
|
||||
@@ -219,7 +219,7 @@ public class Generate3ColorDeck {
|
||||
final CardList sp2CMC = sp2.filter(cmcF);
|
||||
final CardList sp3CMC = sp3.filter(cmcF);
|
||||
|
||||
for (int j = 0; j < i+1; j++) {
|
||||
for (int j = 0; j < i + 1; j++) {
|
||||
Card c = cr1CMC.get(this.r.nextInt(cr1CMC.size()));
|
||||
cr123.add(c);
|
||||
this.cardCounts.put(c.getName(), 0);
|
||||
|
||||
@@ -213,7 +213,7 @@ public class Generate5ColorDeck {
|
||||
|
||||
// select cards to build card pools using a mana curve
|
||||
for (int i = 3; i > 0; i--) {
|
||||
if (i==1) {
|
||||
if (i == 1) {
|
||||
maxCMC[0] = 20; //the last category is open ended
|
||||
}
|
||||
final CardList cr1CMC = cr1.filter(cmcF);
|
||||
|
||||
Reference in New Issue
Block a user