From 5688b289818e267ea83e455d86d3333b4f791985 Mon Sep 17 00:00:00 2001 From: Vittorio Alfieri <53129080+Vitty85@users.noreply.github.com> Date: Wed, 10 Jun 2020 23:50:07 +0200 Subject: [PATCH] Fix !share!types! problem for creatures with no subtypes --- projects/mtg/src/TargetChooser.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/projects/mtg/src/TargetChooser.cpp b/projects/mtg/src/TargetChooser.cpp index 7be816f9a..825b1bded 100644 --- a/projects/mtg/src/TargetChooser.cpp +++ b/projects/mtg/src/TargetChooser.cpp @@ -769,16 +769,11 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta cd->removeType("creature"); cd->removeType("planeswalker"); cd->removeType("tribal"); -#if !defined (PSP) - if (!cd->types.size()) - cd->setSubtype(card->getName() + "_DummyType_" + std::to_string((long double)(rand() % 10000 + 1))); // Fix to avoid type vector size is 0 causing the always true match issue. -#else if (!cd->types.size()){ int i = rand() % 10000 + 1; ostringstream rnd; cd->setSubtype(card->getName() + "_DummyType_" + rnd.str()); // Fix to avoid type vector size is 0 causing the always true match issue. } -#endif cd->mode = CardDescriptor::CD_OR; } }