RE: fix:邹氏祸水第四名及之后角色无法弃置装备区内的所有牌

This commit is contained in:
lieren2023 2024-04-30 13:05:58 +08:00 committed by GitHub
parent 1922a72b2b
commit f9060a4131
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 5 deletions

View File

@ -6720,12 +6720,17 @@ game.import("character", function () {
if (result.bool) {
targets[1].give(result.cards, player);
}
if (targets.length < 3) event.goto(5);
"step 4";
for (var i = 2; i < targets.length; i++) {
var num = targets[i].countCards("e");
if (num > 0) targets[i].chooseToDiscard("e", true, num);
if (targets.length < 3) {
event.goto(5);
} else {
targets.splice(0, 2);
event.targets = targets;
}
"step 4";
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();
},