<anyamount> does not have a targetMin.
This commit is contained in:
@@ -182,6 +182,8 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
|
|||||||
}
|
}
|
||||||
WParsedInt * howmuch = NEW WParsedInt(howmany, (Spell*)card, card);
|
WParsedInt * howmuch = NEW WParsedInt(howmany, (Spell*)card, card);
|
||||||
howmany.find("anyamount") != string::npos?maxtargets = TargetChooser::UNLITMITED_TARGETS:maxtargets = howmuch->getValue();
|
howmany.find("anyamount") != string::npos?maxtargets = TargetChooser::UNLITMITED_TARGETS:maxtargets = howmuch->getValue();
|
||||||
|
if(howmany.find("anyamount") != string::npos)
|
||||||
|
targetMin = false;
|
||||||
delete howmuch;
|
delete howmuch;
|
||||||
s1 = s1.substr(end + 1);
|
s1 = s1.substr(end + 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user