修复选择装备出现空装备问题,修复async bug
This commit is contained in:
parent
02fdf15d2a
commit
8e86dd53d3
|
@ -3736,7 +3736,7 @@ export class Get extends Uninstantable {
|
||||||
else if (node.classList.contains('equips') && ui.arena.classList.contains('selecting')) {
|
else if (node.classList.contains('equips') && ui.arena.classList.contains('selecting')) {
|
||||||
(function () {
|
(function () {
|
||||||
uiintro.add('选择装备');
|
uiintro.add('选择装备');
|
||||||
uiintro.addSmall(Array.from(node.childNodes).filter(node => !node.classList.contains('feichu')), true);
|
uiintro.addSmall(Array.from(node.childNodes).filter(node => !node.classList.contains('emptyequip') && !node.classList.contains('feichu')), true);
|
||||||
uiintro.clickintro = true;
|
uiintro.clickintro = true;
|
||||||
ui.control.hide();
|
ui.control.hide();
|
||||||
uiintro._onclose = function () {
|
uiintro._onclose = function () {
|
||||||
|
|
|
@ -63,6 +63,7 @@ export class GameEventPromise extends Promise {
|
||||||
// 得新执行一个只执行这个异步事件的game.loop
|
// 得新执行一个只执行这个异步事件的game.loop
|
||||||
|
|
||||||
// 事件自行处理skip情况
|
// 事件自行处理skip情况
|
||||||
|
_status.event.next.remove(eventPromise);
|
||||||
if (event.player && event.player.skipList.includes(event.name)) {
|
if (event.player && event.player.skipList.includes(event.name)) {
|
||||||
_status.event.trigger(event.name + 'Skipped');
|
_status.event.trigger(event.name + 'Skipped');
|
||||||
event.player.skipList.remove(event.name);
|
event.player.skipList.remove(event.name);
|
||||||
|
|
Loading…
Reference in New Issue