From 324c2bdcf3a4294e12b02f8a2f19c4bc7f2cbd0a Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 23 Jun 2020 19:47:42 +0200 Subject: [PATCH] * Arcane Artisan - Fixed that the tokens were not exiled but destroyes (fixes #6710). --- Mage.Sets/src/mage/cards/a/ArcaneArtisan.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Mage.Sets/src/mage/cards/a/ArcaneArtisan.java b/Mage.Sets/src/mage/cards/a/ArcaneArtisan.java index e4028535a3..d46ca7710f 100644 --- a/Mage.Sets/src/mage/cards/a/ArcaneArtisan.java +++ b/Mage.Sets/src/mage/cards/a/ArcaneArtisan.java @@ -30,6 +30,7 @@ import mage.util.CardUtil; import java.util.HashSet; import java.util.Set; import java.util.UUID; +import mage.cards.CardsImpl; /** * @author TheElk801 @@ -167,12 +168,10 @@ class ArcaneArtisanExileEffect extends OneShotEffect { public boolean apply(Game game, Ability source) { Object object = game.getState().getValue(CardUtil.getCardZoneString("_tokensCreated", source.getSourceId(), game, true)); if (object != null) { - Set tokensCreated = (Set) object; - for (UUID tokenId : tokensCreated) { - Permanent token = game.getPermanent(tokenId); - if (token != null) { - token.destroy(source.getSourceId(), game, true); - } + Player controller = game.getPlayer(source.getControllerId()); + if (controller != null) { + controller.moveCards(new CardsImpl((Set) object), Zone.EXILED, source, game); + return true; } } return true;