mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Quick fix for negative handsizes other than -1, which is used for no maximum (needs a non-hacky solution).
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user