* Unearth - Fixed that a pahsed out creature were wrongly exiled by unearth.

This commit is contained in:
LevelX2 2017-12-30 19:15:33 +01:00
parent 529a38a96f
commit e81f6c5e90
3 changed files with 66 additions and 27 deletions

View file

@ -34,6 +34,7 @@ import mage.abilities.effects.OneShotEffect;
import mage.cards.Card;
import mage.constants.Outcome;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.players.Player;
import mage.util.CardUtil;
@ -77,6 +78,11 @@ public class ExileSourceEffect extends OneShotEffect {
if (controller != null) {
MageObject sourceObject = source.getSourceObjectIfItStillExists(game);
if (sourceObject instanceof Card) {
if (sourceObject instanceof Permanent) {
if (!((Permanent) sourceObject).isPhasedIn()) {
return true;
}
}
UUID exileZoneId = null;
String exileZoneName = "";
if (toUniqueExileZone) {