- Fixed Challenge achievements being awarded in Puzzle Mode.

This commit is contained in:
Agetian
2017-08-05 11:50:54 +00:00
parent cc2c585a55
commit ab9dea6930

View File

@@ -56,8 +56,9 @@ public class ChallengeAchievements extends AchievementCollection {
@Override
protected final boolean eval(Player player, Game game) {
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
if (game.getRules().hasAppliedVariant(GameType.MomirBasic)
|| game.getRules().hasAppliedVariant(GameType.Puzzle)) {
// these modes use a fixed pre-defined deck format, so challenge achievements don't apply in them
return false;
}
if (player.getOutcome().hasWon()) {