Updated 'AnimationState' class.

Updated the 'AnimationState' class by removing the unused 'DiceNowMessage' call from it.
This commit is contained in:
Daniel Grigencha
2024-12-06 03:57:42 +01:00
parent e3febd6ba1
commit 765b1884fe

View File

@@ -55,7 +55,6 @@ public void exit() {
public void received(AnimationEndMessage msg, int from) {
this.messageReceived.put(from, true);
if (this.messageReceived.size() == this.logic.getGame().getPlayers().size()) {
this.logic.getServerSender().send(this.logic.getGame().getActivePlayerId(), new DiceNowMessage());
this.gameAutomaton.setCurrentState(this.gameAutomaton.getTurnState());
this.gameAutomaton.getTurnState().setCurrentState(this.gameAutomaton.getTurnState().getPowerCardState());
}