From a70259b5ba5fed02848561907a4f24d1ad0c5848 Mon Sep 17 00:00:00 2001 From: Dmitry Panin Date: Sun, 1 Dec 2013 00:59:16 +0400 Subject: [PATCH] Fixed: Assembly-Worker didn't appear as creature type For artifact creatures the parent type TYPE_ARTIFACT was used and therefore that creature's subtype wasn't added in full list. --- projects/mtg/src/CardPrimitive.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/mtg/src/CardPrimitive.cpp b/projects/mtg/src/CardPrimitive.cpp index 8372eb0c1..b399bfb07 100644 --- a/projects/mtg/src/CardPrimitive.cpp +++ b/projects/mtg/src/CardPrimitive.cpp @@ -228,6 +228,9 @@ void CardPrimitive::setSubtype(const string& value) } } + // "Artifact Creature" should have "Creature" as parent type + if (parentType == Subtypes::TYPE_ARTIFACT && isCreature()) + parentType = Subtypes::TYPE_CREATURE; int id = MTGAllCards::add(value, parentType); addType(id);