- Quick fix for negative handsizes other than -1, which is used for no maximum (needs a non-hacky solution).

This commit is contained in:
Sloth
2012-11-12 09:18:16 +00:00
parent 0277607042
commit 6b463ec516
2 changed files with 2 additions and 2 deletions

View File

@@ -282,7 +282,7 @@ public class StaticAbilityContinuous {
p.setMaxHandSize(max);
}
if (params.containsKey("RaiseMaxHandSize") && p.getMaxHandSize() >= 0) {
if (params.containsKey("RaiseMaxHandSize") && p.getMaxHandSize() != -1) {
String rmhs = params.get("RaiseMaxHandSize");
int rmax = rmhs.matches("[0-9][0-9]?") ? Integer.parseInt(rmhs)
: AbilityFactory.calculateAmount(hostCard, rmhs, null);

View File

@@ -50,7 +50,7 @@ public class InputCleanup extends Input {
final int n = active.getCardsIn(ZoneType.Hand).size();
final int max = active.getMaxHandSize();
// goes to the next phase
if (n <= max || max < 0) {
if (n <= max || max == -1) {
Singletons.getModel().getGame().getPhaseHandler().passPriority();
return;
}