mirror of
https://github.com/correl/mage.git
synced 2025-01-12 03:00:13 +00:00
- Fixed #5560. Eventually I will get to the other similar effects.
This commit is contained in:
parent
a5bd2659fd
commit
3595a7fa79
1 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.abilities.effects.common;
|
||||
|
||||
import java.util.LinkedHashSet;
|
||||
|
@ -93,7 +92,8 @@ public class ExileTargetEffect extends OneShotEffect {
|
|||
for (Target target : source.getTargets()) {
|
||||
for (UUID targetId : target.getTargets()) {
|
||||
Permanent permanent = game.getPermanent(targetId);
|
||||
if (permanent != null) {
|
||||
if (permanent != null
|
||||
&& permanent.isPhasedIn()) {
|
||||
Zone currentZone = game.getState().getZone(permanent.getId());
|
||||
if (currentZone != Zone.EXILED && (onlyFromZone == null || onlyFromZone == Zone.BATTLEFIELD)) {
|
||||
toExile.add(permanent);
|
||||
|
@ -117,7 +117,8 @@ public class ExileTargetEffect extends OneShotEffect {
|
|||
} else {
|
||||
for (UUID targetId : getTargetPointer().getTargets(game, source)) {
|
||||
Permanent permanent = game.getPermanent(targetId);
|
||||
if (permanent != null) {
|
||||
if (permanent != null
|
||||
&& permanent.isPhasedIn()) {
|
||||
Zone currentZone = game.getState().getZone(permanent.getId());
|
||||
if (currentZone != Zone.EXILED && (onlyFromZone == null || onlyFromZone == Zone.BATTLEFIELD)) {
|
||||
toExile.add(permanent);
|
||||
|
|
Loading…
Reference in a new issue