Copied Token Image
If the image is not found, try finding the token counterpart by Id
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user