Added/fixed some primitives from J22 and NEC sets, fixed J22 and NEC dat file, updated card image url from NEC and J22 sets, fixed a bug on token copy, improved flip ability for tokens.

This commit is contained in:
Vittorio Alfieri
2023-06-05 17:55:11 +02:00
parent f8fc173e86
commit 2831ac12ae
6 changed files with 632 additions and 13 deletions
+7 -2
View File
@@ -112,8 +112,13 @@ void MTGCardInstance::copy(MTGCardInstance * card, bool nolegend)
source = MTGCollection()->getCardById(card->getMTGId());
else
{
source = card->tokCard;
source->data = card->tokCard;//?wtf
if(card->tokCard){ // Fix a possible crash when tokCard is null...
source = card->tokCard;
source->data = card->tokCard; //?wtf
} else {
source = card;
source->data = card;
}
}
}
else