mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Retained some schemas
This commit is contained in:
@@ -23,7 +23,9 @@ public class VariantWins extends ProgressiveAchievement {
|
||||
if (game.getRules().hasAppliedVariant(variant)) {
|
||||
return true;
|
||||
}
|
||||
return variant == GameType.Archenemy && game.getRules().hasAppliedVariant(GameType.ArchenemyRumble); //lump Archenemy Rumble into same achievement as Archenemy
|
||||
if (variant == GameType.Archenemy && game.getRules().hasAppliedVariant(GameType.ArchenemyRumble)) {
|
||||
return true; //lump Archenemy Rumble into same achievement as Archenemy
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,10 @@ public final class CardScriptParser {
|
||||
if (!(part.startsWith("P") || part.startsWith("2") || isManaSymbol(part.charAt(0)))) {
|
||||
return false;
|
||||
}
|
||||
return (isManaSymbol(part.charAt(1))) && part.charAt(0) != part.charAt(1);
|
||||
if ((!isManaSymbol(part.charAt(1))) || part.charAt(0) == part.charAt(1)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -181,7 +181,10 @@ public final class CardBlock implements Comparable<CardBlock> {
|
||||
if (!this.landSet.equals(other.landSet)) {
|
||||
return false;
|
||||
}
|
||||
return this.name.equals(other.name);
|
||||
if (!this.name.equals(other.name)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -562,7 +562,9 @@ public class HumanPlay {
|
||||
}
|
||||
else { // Tainted Specter, Gurzigost, etc.
|
||||
boolean hasPaid = payCostPart(controller, sourceAbility, (CostPartWithList)part, amount, list, "put into library." + orString);
|
||||
return hasPaid;
|
||||
if (!hasPaid) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -44,6 +44,10 @@ public class StarRating {
|
||||
return false;
|
||||
}
|
||||
|
||||
return rating == other.rating;
|
||||
if (rating != other.rating) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user