From ad80b000c90300e0c4bf4c83b9e93264af5b99d8 Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Thu, 25 Aug 2016 03:38:42 +0800 Subject: [PATCH] find missing art on stored source card when tokencreator is used inside ability$!!$ who, try to get the token images and id from stored source --- projects/mtg/include/AllAbilities.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index d3ffc0f56..0266a1ef8 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -3812,6 +3812,14 @@ public: spell->source->isToken = 1; spell->source->fresh = 1; spell->source->entersBattlefield = 1; + if(spell->source->getMTGId() == 0) + {//fix missing art: if token creator is put inside ability$!!$ who, then try to get the stored source card + if(((MTGCardInstance*)source)->storedSourceCard) + { + spell->source->setId = ((MTGCardInstance*)source)->storedSourceCard->setId; + spell->source->setMTGId(-((MTGCardInstance*)source)->storedSourceCard->getMTGId()); + } + } if(aLivingWeapon) { livingWeaponToken(spell->source);