Gestion état sonné correct
This commit is contained in:
parent
3335c41c27
commit
2b1a9151d7
@ -1199,7 +1199,7 @@ export class RdDActor extends Actor {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async verifierSonneRound(round) {
|
async verifierSonneRound(round) {
|
||||||
if (this.getSonne()) {
|
if (this.getSonne()) {
|
||||||
if (round >= this.getSonneRound() + 1) {
|
if (round > this.getSonneRound() + 1) {
|
||||||
await this.setSonne(false, -1); // Nettoyer l'état sonné
|
await this.setSonne(false, -1); // Nettoyer l'état sonné
|
||||||
ChatMessage.create({ content: `${this.name} n'est plus sonné ce round !` });
|
ChatMessage.create({ content: `${this.name} n'est plus sonné ce round !` });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user