Hid Subtypes behind MTGAllCards and added a mutex to be able to use both singleton from several threads.
This commit is contained in:
@@ -2008,7 +2008,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
|
||||
vector<string> splitLoseTypes = parseBetween(s, "losesubtypesof(", ")");
|
||||
if (splitLoseTypes.size())
|
||||
{
|
||||
int parentType = Subtypes::subtypesList->find(splitLoseTypes[1]);
|
||||
int parentType = MTGAllCards::findType(splitLoseTypes[1]);
|
||||
return NEW ALoseSubtypes(observer, id, card, target, parentType);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user