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
This commit is contained in:
Anthony Calosa
2016-08-25 03:38:42 +08:00
parent 9bcc54c56c
commit ad80b000c9

View File

@@ -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);