From 65ef1f384c797726225bd4e08707ca714cff403d Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Mon, 8 Aug 2016 10:15:50 +0800 Subject: [PATCH] fix token names with "," --- projects/mtg/src/MTGAbility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index 54771954b..04edb226b 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -2394,7 +2394,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG string tokenDesc = splitToken[1]; vector tokenParameters = split(tokenDesc, ','); //lets try finding a token by card name. - if (splitToken[1].size() && tokenParameters.size() ==1) + if (splitToken[1].size() && tokenParameters.size() <3)//names with "," should work like token(Akuta, Born of Ash) { string cardName = splitToken[1]; MTGCard * safetycard = MTGCollection()->getCardByName(cardName);