mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Fixed flicker effects not working with MDFCs (fixes #7516)
This commit is contained in:
parent
ea577e2070
commit
0d0d14856a
1 changed files with 4 additions and 2 deletions
|
@ -10,6 +10,7 @@ import mage.constants.Outcome;
|
|||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
|
@ -76,8 +77,9 @@ public class ReturnToBattlefieldUnderYourControlTargetEffect extends OneShotEffe
|
|||
Cards cardsToBattlefield = new CardsImpl();
|
||||
if (returnFromExileZoneOnly) {
|
||||
for (UUID targetId : this.getTargetPointer().getTargets(game, source)) {
|
||||
if (game.getExile().containsId(targetId, game)) {
|
||||
cardsToBattlefield.add(targetId);
|
||||
UUID mainCardId = CardUtil.getMainCardId(game, targetId);
|
||||
if (game.getExile().containsId(mainCardId, game)) {
|
||||
cardsToBattlefield.add(mainCardId);
|
||||
} else {
|
||||
Card card = game.getCard(targetId);
|
||||
if (card instanceof MeldCard) {
|
||||
|
|
Loading…
Reference in a new issue