lib.element.event.trigger为_status.gameDrawe不存在的情况下封禁所有有关卡牌移动函数的时机创造
This commit is contained in:
parent
43ee8766b6
commit
2cc87640dc
|
@ -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", {});
|
||||
|
|
Loading…
Reference in New Issue