From 54ad205e38fee0d9373899a74007b13ff9118716 Mon Sep 17 00:00:00 2001 From: Rigner Date: Fri, 10 Apr 2020 18:14:30 +0200 Subject: [PATCH] Fixed wrong logic in RBouffon (#33) --- src/main/java/fr/leomelki/loupgarou/roles/RBouffon.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/leomelki/loupgarou/roles/RBouffon.java b/src/main/java/fr/leomelki/loupgarou/roles/RBouffon.java index ffea235..a1adff9 100644 --- a/src/main/java/fr/leomelki/loupgarou/roles/RBouffon.java +++ b/src/main/java/fr/leomelki/loupgarou/roles/RBouffon.java @@ -90,10 +90,10 @@ public class RBouffon extends Role{ List choosable = getGame().getVote().getVotes(player); StringJoiner sj = new StringJoiner("§6§o, §6§o§l"); for(LGPlayer lgp : choosable) - if(lgp.getPlayer() != null && lgp.getPlayer() != player) + if(lgp.getPlayer() != null && lgp != player) sj.add(lgp.getName()); - player.sendMessage("§6§o§l"+sj+"§6§o "+(sj.length() > 1 ? "ont" : "a")+" voté pour toi."); + player.sendMessage("§6§o§l"+sj+"§6§o "+(choosable.size() > 1 ? "ont" : "a")+" voté pour toi."); player.choose((choosen)->{ if(choosen != null) {