lib.element.event.trigger为_status.gameDrawe不存在的情况下封禁所有有关卡牌移动函数的时机创造

This commit is contained in:
mengxinzxz 2024-05-10 16:21:34 +08:00
parent 43ee8766b6
commit 2cc87640dc
1 changed files with 1 additions and 1 deletions

View File

@ -786,7 +786,7 @@ export class GameEvent {
}
trigger(name) {
if (_status.video) return;
if ((this.name === "gain" || this.name === "lose") && !_status.gameDrawed) return;
if (!_status.gameDrawed && ["lose", "gain", "loseAsync", "equip", "addJudge", "addToExpansion"].includes(this.name)) return;
if (name === "gameDrawEnd") _status.gameDrawed = true;
if (name === "gameStart") {
lib.announce.publish("Noname.Game.Event.GameStart", {});