From 5bd6bb5c5ad00c735bc92925c9d9d8ee2ce0a8af Mon Sep 17 00:00:00 2001 From: shayan Date: Thu, 1 Sep 2022 02:49:10 +0430 Subject: [PATCH] fix: readiness for joker --- src/main/java/ir/sharif/aic/hideandseek/core/models/Agent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ir/sharif/aic/hideandseek/core/models/Agent.java b/src/main/java/ir/sharif/aic/hideandseek/core/models/Agent.java index f946908..32b5838 100644 --- a/src/main/java/ir/sharif/aic/hideandseek/core/models/Agent.java +++ b/src/main/java/ir/sharif/aic/hideandseek/core/models/Agent.java @@ -46,7 +46,7 @@ public synchronized void apply(DeclareReadinessCommand cmd, Channel e return; } - if (this.is(AgentType.THIEF)) { + if (this.is(AgentType.THIEF) || this.is(AgentType.JOKER)) { this.nodeId = cmd.getStartNodeId(); }