为runContent增加一处保底-2

This commit is contained in:
nonameShijian 2024-02-05 23:53:07 +08:00
parent 2d60f27e2b
commit cb34cd1e46
1 changed files with 15 additions and 4 deletions

View File

@ -5695,10 +5695,21 @@ export class Game extends Uninstantable {
event.content(event, trigger, player).then(() => {
// 其实这个if几乎一定执行了
if (game.executingAsyncEventMap.has(event.toEvent())) {
if (!game.executingAsyncEventMap.get(_status.event.toEvent())) {
console.warn(`game.executingAsyncEventMap中包括了event但不包括_status.event`);
console.log('event :>> ', event.toEvent());
console.log('_status.event :>> ', _status.event.toEvent());
// debugger;
game.executingAsyncEventMap.set(event.toEvent(), game.executingAsyncEventMap.get(event.toEvent()).then(() => {
event.finish();
resolve();
}));
} else {
game.executingAsyncEventMap.set(_status.event.toEvent(), game.executingAsyncEventMap.get(_status.event.toEvent()).then(() => {
event.finish();
resolve();
}));
}
} else {
event.finish();
resolve();