* Mistveil Plains - Fixed that the card was not moved to library.
-
package mage.cards.m;
+import java.util.UUID;
import mage.ObjectColor;
import mage.abilities.Ability;
import mage.abilities.common.ActivateIfConditionActivatedAbility;
@@ -20,8 +20,6 @@ import mage.game.Game;
import mage.players.Player;
import mage.target.common.TargetCardInYourGraveyard;
-import java.util.UUID;
-
/**
* @author LevelX2
*/
@@ -86,8 +84,8 @@ class MistveilPlainsGraveyardToLibraryEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) {
Card card = game.getCard(source.getFirstTarget());
Player player = game.getPlayer(source.getControllerId());
- if (card == null || player == null ||
- game.getState().getZone(card.getId()) == Zone.GRAVEYARD) {
+ if (card == null || player == null
+ || game.getState().getZone(card.getId()) != Zone.GRAVEYARD) {
return false;
}
return player.putCardsOnBottomOfLibrary(card, game, source, false);
