fix deacoudre when +2 players win
This commit is contained in:
parent
a6794b0b3d
commit
75e3b49379
1 changed files with 9 additions and 10 deletions
19
deacoudre.sk
19
deacoudre.sk
|
@ -113,16 +113,15 @@ on death:
|
||||||
set {thimble.dead.%uuid of player%} to true
|
set {thimble.dead.%uuid of player%} to true
|
||||||
set {_finPartie} to 0
|
set {_finPartie} to 0
|
||||||
loop {party.list::*}:
|
loop {party.list::*}:
|
||||||
if {thimble.dead.%uuid of loop-value%} is not set:
|
if {thimble.dead.%uuid of loop-value%} is true:
|
||||||
set {_gagnant} to userOrNick(loop-value)
|
|
||||||
add 1 to {_finPartie}
|
|
||||||
else:
|
|
||||||
set {_player} to userOrNick(loop-value)
|
set {_player} to userOrNick(loop-value)
|
||||||
annonceParty("&c%{_player}%&b a été éliminé !")
|
annonceParty("&c%{_player}%&b a été éliminé !")
|
||||||
if {_finPartie} is 1 or 0:
|
else:
|
||||||
loop {party.list::*}:
|
set {_gagnant} to userOrNick(loop-value)
|
||||||
if {_gagnant} is set:
|
add 1 to {_finPartie}
|
||||||
send "&a&l%{_gagnant}%&r&l a gagné la partie !!" to loop-value
|
if {_finPartie} <= 1: # 1 ou 0
|
||||||
else:
|
if {_gagnant} is set:
|
||||||
send "&cTu étais tout seul à jouer... bravo quand même ?" to loop-value
|
annonceParty("&a&l%{_gagnant}%&r&l a gagné la partie !!")
|
||||||
|
else:
|
||||||
|
send "&cTu étais tout seul à jouer... bravo quand même ?"
|
||||||
execute player command "deacoudre"
|
execute player command "deacoudre"
|
||||||
|
|
Loading…
Reference in a new issue