mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
* Unearth - Fixed that a pahsed out creature were wrongly exiled by unearth.
This commit is contained in:
parent
529a38a96f
commit
e81f6c5e90
3 changed files with 66 additions and 27 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue