Fix !share!types! keyword

This commit is contained in:
Vittorio Alfieri
2020-06-11 00:10:41 +02:00
committed by GitHub
parent 6212af0f48
commit 67c7102687

View File

@@ -772,7 +772,7 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
if (!cd->types.size()){ if (!cd->types.size()){
int i = rand() % 10000 + 1; int i = rand() % 10000 + 1;
ostringstream subt; ostringstream subt;
subt << card->getName() << "_DummyType_" << i; subt << card->getName() << "_DummyType_" << i;
cd->setSubtype(subt.str()); // Fix to avoid type vector size is 0 causing the always true match issue. cd->setSubtype(subt.str()); // Fix to avoid type vector size is 0 causing the always true match issue.
} }
cd->mode = CardDescriptor::CD_OR; cd->mode = CardDescriptor::CD_OR;