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.
This commit is contained in:
Dmitry Panin
2013-12-01 00:59:16 +04:00
parent bf0a0a1580
commit a70259b5ba

View File

@@ -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);