fix: some format error.
This commit is contained in:
parent
83d33d268a
commit
744f6eafa0
File diff suppressed because it is too large
Load Diff
|
@ -357,7 +357,7 @@ export class Library {
|
|||
_status.event._resultid = id;
|
||||
game.resume();
|
||||
};
|
||||
$!;
|
||||
"step 1";
|
||||
var type = get.type2(card);
|
||||
event.list = game
|
||||
.filterPlayer(
|
||||
|
@ -369,7 +369,7 @@ export class Library {
|
|||
)
|
||||
.sortBySeat(_status.currentPhase || player);
|
||||
event.id = get.id();
|
||||
$!;
|
||||
"step 2";
|
||||
if (!event.list.length) event.finish();
|
||||
else if (
|
||||
_status.connectMode &&
|
||||
|
@ -386,14 +386,14 @@ export class Library {
|
|||
trigger.parent.id,
|
||||
trigger.yingbianZhuzhanAI
|
||||
);
|
||||
$!;
|
||||
"step 3";
|
||||
if (result.bool) {
|
||||
event.zhuzhanresult = event.current;
|
||||
event.zhuzhanresult2 = result;
|
||||
if (event.current != game.me) game.delayx();
|
||||
event.goto(8);
|
||||
} else event.goto(2);
|
||||
$!;
|
||||
"step 4";
|
||||
var id = event.id,
|
||||
sendback = (result, player) => {
|
||||
if (result && result.id == id && !event.zhuzhanresult && result.bool) {
|
||||
|
@ -457,16 +457,16 @@ export class Library {
|
|||
if (value != player) value.showTimer();
|
||||
});
|
||||
event.withol = withol;
|
||||
$!;
|
||||
"step 5";
|
||||
if (!result || !result.bool || event.zhuzhanresult) return;
|
||||
game.broadcast("cancel", event.id);
|
||||
event.zhuzhanresult = game.me;
|
||||
event.zhuzhanresult2 = result;
|
||||
$!;
|
||||
"step 6";
|
||||
if (event.withol && !event.resultOL) game.pause();
|
||||
$!;
|
||||
"step 7";
|
||||
game.players.forEach((value) => value.hideTimer());
|
||||
$!;
|
||||
"step 8";
|
||||
if (event.zhuzhanresult) {
|
||||
var target = event.zhuzhanresult;
|
||||
target.line(player, "green");
|
||||
|
@ -12526,7 +12526,7 @@ export class Library {
|
|||
"step 0";
|
||||
event.dying = trigger.player;
|
||||
if (!event.acted) event.acted = [];
|
||||
$!;
|
||||
"step 1";
|
||||
if (trigger.player.isDead()) {
|
||||
event.finish();
|
||||
return;
|
||||
|
@ -12597,7 +12597,7 @@ export class Library {
|
|||
} else {
|
||||
event._result = { bool: false };
|
||||
}
|
||||
$!;
|
||||
"step 2";
|
||||
if (result.bool) {
|
||||
var player = trigger.player;
|
||||
if (
|
||||
|
@ -12704,7 +12704,7 @@ export class Library {
|
|||
content: function () {
|
||||
"step 0";
|
||||
event.logvid = trigger.getLogv();
|
||||
$!;
|
||||
"step 1";
|
||||
event.targets = game.filterPlayer(function (current) {
|
||||
return current != event.player && current.isLinked();
|
||||
});
|
||||
|
@ -12714,7 +12714,7 @@ export class Library {
|
|||
event._args = [trigger.num, trigger.nature, trigger.cards, trigger.card];
|
||||
if (trigger.source) event._args.push(trigger.source);
|
||||
else event._args.push("nosource");
|
||||
$!;
|
||||
"step 2";
|
||||
if (event.targets.length) {
|
||||
var target = event.targets.shift();
|
||||
if (target.isLinked()) target.damage.apply(target, event._args.slice(0));
|
||||
|
|
|
@ -91,7 +91,7 @@ export class LibInit {
|
|||
event._resultid = null;
|
||||
event._result = null;
|
||||
game.pause();
|
||||
$!;
|
||||
"step 1";
|
||||
if (result) {
|
||||
if (event._resultid) {
|
||||
result.id = event._resultid;
|
||||
|
@ -717,7 +717,7 @@ export class LibInit {
|
|||
}
|
||||
}
|
||||
//func中要写步骤的话,必须要写step 0
|
||||
if (str.indexOf$! == -1) {
|
||||
if (str.indexOf("step 0") == -1) {
|
||||
str = "{if(event.step==1) {event.finish();return;}\n" + str;
|
||||
} else {
|
||||
let skip = 0;
|
||||
|
|
Loading…
Reference in New Issue