mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fixed MaxhandSize < 0 case in InputCleanup.
This commit is contained in:
@@ -50,7 +50,7 @@ public class InputCleanup extends Input {
|
|||||||
final int n = active.getCardsIn(ZoneType.Hand).size();
|
final int n = active.getCardsIn(ZoneType.Hand).size();
|
||||||
final int max = active.getMaxHandSize();
|
final int max = active.getMaxHandSize();
|
||||||
// goes to the next phase
|
// goes to the next phase
|
||||||
if (n <= max || max == -1) {
|
if (n <= max || n <= 0) {
|
||||||
Singletons.getModel().getGame().getPhaseHandler().passPriority();
|
Singletons.getModel().getGame().getPhaseHandler().passPriority();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user