mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Mistveil Plains - Fixed that the card was not moved to library.
This commit is contained in:
parent
99b4cacf33
commit
cdcbf0aaa2
1 changed files with 3 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue