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:
@@ -3812,6 +3812,14 @@ public:
|
|||||||
spell->source->isToken = 1;
|
spell->source->isToken = 1;
|
||||||
spell->source->fresh = 1;
|
spell->source->fresh = 1;
|
||||||
spell->source->entersBattlefield = 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)
|
if(aLivingWeapon)
|
||||||
{
|
{
|
||||||
livingWeaponToken(spell->source);
|
livingWeaponToken(spell->source);
|
||||||
|
|||||||
Reference in New Issue
Block a user