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:
@@ -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);
|
int id = MTGAllCards::add(value, parentType);
|
||||||
addType(id);
|
addType(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user