mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
- Fixed Challenge achievements being awarded in Puzzle Mode.
This commit is contained in:
@@ -56,8 +56,9 @@ public class ChallengeAchievements extends AchievementCollection {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected final boolean eval(Player player, Game game) {
|
protected final boolean eval(Player player, Game game) {
|
||||||
if (game.getRules().hasAppliedVariant(GameType.MomirBasic)) {
|
if (game.getRules().hasAppliedVariant(GameType.MomirBasic)
|
||||||
// Momir Basic uses a fixed pre-defined deck format (all lands), so designing it to be that way is not the player's achievement
|
|| game.getRules().hasAppliedVariant(GameType.Puzzle)) {
|
||||||
|
// these modes use a fixed pre-defined deck format, so challenge achievements don't apply in them
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (player.getOutcome().hasWon()) {
|
if (player.getOutcome().hasWon()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user