now allowed to roll dice after getting out of jail

This commit is contained in:
Johannes Schmelz 2024-12-03 12:24:55 +01:00
parent bc31c61fb3
commit 8e3cf9c31e

View File

@ -626,6 +626,7 @@ public class Player implements FieldVisitor<Void>{
if (rollResult.isDoublets()) {
handler.getLogic().send(Player.this, new JailEvent(false));
state = new ActiveState();
getHandler().getLogic().send(Player.this, new NextPlayerTurn());
} else {
remainingAttempts--;
}
@ -637,6 +638,7 @@ public class Player implements FieldVisitor<Void>{
public void payBail() {
pay(500);
state = new ActiveState();
getHandler().getLogic().send(Player.this, new NextPlayerTurn());
}
@Override