Merge pull request #1284 from lieren2023/lieren2023-patch-3

bug fix
This commit is contained in:
Spmario233 2024-04-30 16:11:20 +08:00 committed by GitHub
commit 2c827f1298
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -6745,10 +6745,16 @@ game.import("character", function () {
if (result.bool) {
targets[1].give(result.cards, player);
}
if (targets.length < 3) event.goto(5);
if (targets.length < 3) {
event.goto(5);
} else {
targets.splice(0, 2);
}
"step 4";
var num = targets[2].countCards("e");
if (num > 0) targets[2].chooseToDiscard("e", true, num);
var target = targets.shift();
var num = target.countCards("e");
if (num > 0) target.chooseToDiscard("e", true, num);
if (targets.length > 0) event.redo();
"step 5";
game.delayx();
},