diff --git a/Mage.Sets/src/mage/cards/h/HaktosTheUnscarred.java b/Mage.Sets/src/mage/cards/h/HaktosTheUnscarred.java index 8e331f6abe..d5f0960f3b 100644 --- a/Mage.Sets/src/mage/cards/h/HaktosTheUnscarred.java +++ b/Mage.Sets/src/mage/cards/h/HaktosTheUnscarred.java @@ -1,5 +1,6 @@ package mage.cards.h; +import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.AsEntersBattlefieldAbility; @@ -13,16 +14,14 @@ import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.*; import mage.filter.FilterCard; -import mage.filter.predicate.ObjectPlayerPredicate; import mage.filter.predicate.ObjectSourcePlayer; +import mage.filter.predicate.ObjectSourcePlayerPredicate; import mage.game.Game; import mage.game.permanent.Permanent; import mage.players.Player; import mage.util.CardUtil; import mage.util.RandomUtil; -import java.util.UUID; - /** * @author TheElk801 */ @@ -96,13 +95,13 @@ class HaktosTheUnscarredChooseEffect extends OneShotEffect { } int number = 2 + RandomUtil.nextInt(3); game.informPlayers(permanent.getLogName() + ": " + controller.getLogName() + " has chosen " + number + " at random"); - game.getState().setValue(permanent.getId() + "" + permanent.getZoneChangeCounter(game) + "_haktos_number", number); + game.getState().setValue(permanent.getId() + "" + (permanent.getZoneChangeCounter(game) + 1) + "_haktos_number", number); permanent.addInfo("chosen number", CardUtil.addToolTipMarkTags("Chosen number: " + number), game); return true; } } -enum HaktosTheUnscarredPredicate implements ObjectPlayerPredicate> { +enum HaktosTheUnscarredPredicate implements ObjectSourcePlayerPredicate> { instance; @Override @@ -114,4 +113,4 @@ enum HaktosTheUnscarredPredicate implements ObjectPlayerPredicate getColors() { return colors; } + public List getColors() { + return colors; + } public UUID getAuraIdNotToBeRemoved() { return auraIdNotToBeRemoved; diff --git a/Mage/src/main/java/mage/filter/FilterCard.java b/Mage/src/main/java/mage/filter/FilterCard.java index 0ae6b64360..b9c3e18fa6 100644 --- a/Mage/src/main/java/mage/filter/FilterCard.java +++ b/Mage/src/main/java/mage/filter/FilterCard.java @@ -1,15 +1,14 @@ package mage.filter; -import mage.cards.Card; -import mage.constants.TargetController; -import mage.filter.predicate.*; -import mage.game.Game; - import java.util.ArrayList; import java.util.List; import java.util.Set; import java.util.UUID; import java.util.stream.Collectors; +import mage.cards.Card; +import mage.constants.TargetController; +import mage.filter.predicate.*; +import mage.game.Game; /** * @author BetaSteward_at_googlemail.com