Copied Token Image

If the image is not found, try finding the token counterpart by Id
This commit is contained in:
Anthony Calosa
2016-08-05 21:52:46 +08:00
parent c4907edd76
commit dae1b10de1
5 changed files with 67 additions and 0 deletions

View File

@@ -149,6 +149,20 @@ void MTGCardInstance::copy(MTGCardInstance * card)
backupTargets = this->backupTargets;
storedCard = oldStored;
miracle = false;
if (card->TokenAndAbility)
{
MTGAbility * andAbilityClone = card->TokenAndAbility->clone();
andAbilityClone->target = this;
if(card->TokenAndAbility->oneShot)
{
andAbilityClone->resolve();
SAFE_DELETE(andAbilityClone);
}
else
{
andAbilityClone->addToGame();
}
}
}
MTGCardInstance::~MTGCardInstance()