fix: revert bug.
This commit is contained in:
parent
f4fe5406c9
commit
0dd72eef89
|
@ -8,11 +8,11 @@ import { GNC as gnc } from '../../gnc/index.js';
|
||||||
|
|
||||||
// 未来再改
|
// 未来再改
|
||||||
export const Content = {
|
export const Content = {
|
||||||
emptyEvent: async (event) => {
|
emptyEvent: () => {
|
||||||
event.trigger(event.name);
|
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();
|
const hs = player.getCards('h'), showingCards = event._cards.filter(showingCard => hs.includes(showingCard)), shown = player.getShownCards();
|
||||||
event.gaintag.forEach(tag => player.addGaintag(showingCards, tag));
|
event.gaintag.forEach(tag => player.addGaintag(showingCards, tag));
|
||||||
if (!(event.cards = showingCards.filter(showingCard => !shown.includes(showingCard))).length) return;
|
if (!(event.cards = showingCards.filter(showingCard => !shown.includes(showingCard))).length) return;
|
||||||
|
@ -6665,8 +6665,7 @@ export const Content = {
|
||||||
"step 5";
|
"step 5";
|
||||||
ui.clear();
|
ui.clear();
|
||||||
},
|
},
|
||||||
draw: async (event, _trigger, player) => {
|
draw: function() {
|
||||||
let { num } = event;
|
|
||||||
// if(lib.config.background_audio){
|
// if(lib.config.background_audio){
|
||||||
// game.playAudio('effect','draw');
|
// game.playAudio('effect','draw');
|
||||||
// }
|
// }
|
||||||
|
@ -6724,7 +6723,6 @@ export const Content = {
|
||||||
}
|
}
|
||||||
if (event.gaintag) next.gaintag.addArray(event.gaintag);
|
if (event.gaintag) next.gaintag.addArray(event.gaintag);
|
||||||
event.result = cards;
|
event.result = cards;
|
||||||
await next;
|
|
||||||
},
|
},
|
||||||
discard: function () {
|
discard: function () {
|
||||||
"step 0";
|
"step 0";
|
||||||
|
|
Loading…
Reference in New Issue