<anyamount> does not have a targetMin.

This commit is contained in:
omegablast2002@yahoo.com
2011-09-13 13:01:20 +00:00
parent 0fd6b8caae
commit 713cb2aa45

View File

@@ -182,6 +182,8 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
}
WParsedInt * howmuch = NEW WParsedInt(howmany, (Spell*)card, card);
howmany.find("anyamount") != string::npos?maxtargets = TargetChooser::UNLITMITED_TARGETS:maxtargets = howmuch->getValue();
if(howmany.find("anyamount") != string::npos)
targetMin = false;
delete howmuch;
s1 = s1.substr(end + 1);
}