添加部分注释
This commit is contained in:
parent
afbbc3cb32
commit
7d64a0629d
|
@ -586,17 +586,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
trigger:{player:'damageEnd'},
|
trigger:{player:'damageEnd'},
|
||||||
frequent:true,
|
frequent:true,
|
||||||
filter:function(event){
|
filter:function(event){
|
||||||
return (event.num>0)
|
return event.num>0;
|
||||||
},
|
},
|
||||||
async content(event, trigger, player) {
|
async content(event, trigger, player) {
|
||||||
event.count = trigger.num;
|
event.count = trigger.num;
|
||||||
|
// event.goto -> while
|
||||||
while (event.count > 0) {
|
while (event.count > 0) {
|
||||||
event.count--;
|
event.count--;
|
||||||
const { cards } = await game.cardsGotoOrdering(get.cards(2)).toPromise();
|
const { cards } = await game.cardsGotoOrdering(get.cards(2)).toPromise();
|
||||||
if (_status.connectMode) game.broadcastAll(function () { _status.noclearcountdown = true });
|
if (_status.connectMode) game.broadcastAll(function () { _status.noclearcountdown = true });
|
||||||
event.given_map = {};
|
event.given_map = {};
|
||||||
|
|
||||||
if (!cards.length) return;
|
if (!cards.length) return;
|
||||||
|
// event.goto -> do while
|
||||||
do {
|
do {
|
||||||
const { result: { bool, links } } =
|
const { result: { bool, links } } =
|
||||||
cards.length == 1 ?
|
cards.length == 1 ?
|
||||||
|
|
Loading…
Reference in New Issue