Gestion état sonné correct

This commit is contained in:
sladecraven 2021-04-03 08:18:08 +02:00
parent 3335c41c27
commit 2b1a9151d7

View File

@ -1199,7 +1199,7 @@ export class RdDActor extends Actor {
/* -------------------------------------------- */
async verifierSonneRound(round) {
if (this.getSonne()) {
if (round >= this.getSonneRound() + 1) {
if (round > this.getSonneRound() + 1) {
await this.setSonne(false, -1); // Nettoyer l'état sonné
ChatMessage.create({ content: `${this.name} n'est plus sonné ce round !` });
}