添加部分注释

This commit is contained in:
shijian 2023-12-06 23:00:07 +08:00
parent afbbc3cb32
commit 7d64a0629d
1 changed files with 3 additions and 2 deletions

View File

@ -586,17 +586,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){
trigger:{player:'damageEnd'},
frequent:true,
filter:function(event){
return (event.num>0)
return event.num>0;
},
async content(event, trigger, player) {
event.count = trigger.num;
// event.goto -> while
while (event.count > 0) {
event.count--;
const { cards } = await game.cardsGotoOrdering(get.cards(2)).toPromise();
if (_status.connectMode) game.broadcastAll(function () { _status.noclearcountdown = true });
event.given_map = {};
if (!cards.length) return;
// event.goto -> do while
do {
const { result: { bool, links } } =
cards.length == 1 ?