Fixed wrong logic in RBouffon (#33)

This commit is contained in:
Rigner 2020-04-10 18:14:30 +02:00 committed by GitHub
parent 495f0991f0
commit 54ad205e38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,10 +90,10 @@ public class RBouffon extends Role{
List<LGPlayer> 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) {