fix: revert bug.

This commit is contained in:
Ansolve 2024-01-10 23:12:23 +08:00
parent f4fe5406c9
commit 0dd72eef89
No known key found for this signature in database
GPG Key ID: 2F2873AC9538CC2D
1 changed files with 8300 additions and 8302 deletions

View File

@ -8,11 +8,11 @@ import { GNC as gnc } from '../../gnc/index.js';
// 未来再改
export const Content = {
emptyEvent: async (event) => {
emptyEvent: () => {
event.trigger(event.name);
},
//增加明置手牌
addShownCards: async (event, _trigger, player) => {
addShownCards: () => {
const hs = player.getCards('h'), showingCards = event._cards.filter(showingCard => hs.includes(showingCard)), shown = player.getShownCards();
event.gaintag.forEach(tag => player.addGaintag(showingCards, tag));
if (!(event.cards = showingCards.filter(showingCard => !shown.includes(showingCard))).length) return;
@ -6665,8 +6665,7 @@ export const Content = {
"step 5";
ui.clear();
},
draw: async (event, _trigger, player) => {
let { num } = event;
draw: function() {
// if(lib.config.background_audio){
// game.playAudio('effect','draw');
// }
@ -6724,7 +6723,6 @@ export const Content = {
}
if (event.gaintag) next.gaintag.addArray(event.gaintag);
event.result = cards;
await next;
},
discard: function () {
"step 0";