Merge pull request #1412 from lieren2023/lieren2023-patch-1

rehuoshui再次修复
This commit is contained in:
Spmario233 2024-06-01 17:34:00 +08:00 committed by GitHub
commit f550e1e854
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 5 deletions

View File

@ -5741,26 +5741,27 @@ const skills = {
player.logSkill("rehuoshui", targets); player.logSkill("rehuoshui", targets);
event.targets = targets; event.targets = targets;
targets[0].addTempSkill("fengyin"); targets[0].addTempSkill("fengyin");
if (targets.length < 2) event.goto(5); if (targets.length < 2) event.goto(6);
} else event.finish(); } else event.finish();
"step 2"; "step 2";
if (targets[1].countCards("h") == 0) event.goto(targets.length > 2 ? 4 : 5); if (targets[1].countCards("h") == 0) event.goto(targets.length > 2 ? 4 : 6);
else targets[1].chooseCard("h", true, "交给" + get.translation(player) + "一张手牌"); else targets[1].chooseCard("h", true, "交给" + get.translation(player) + "一张手牌");
"step 3"; "step 3";
if (result.bool) { if (result.bool) {
targets[1].give(result.cards, player); targets[1].give(result.cards, player);
} }
"step 4";
if (targets.length < 3) { if (targets.length < 3) {
event.goto(5); event.goto(6);
} else { } else {
targets.splice(0, 2); targets.splice(0, 2);
} }
"step 4"; "step 5";
var target = targets.shift(); var target = targets.shift();
var num = target.countCards("e"); var num = target.countCards("e");
if (num > 0) target.chooseToDiscard("e", true, num); if (num > 0) target.chooseToDiscard("e", true, num);
if (targets.length > 0) event.redo(); if (targets.length > 0) event.redo();
"step 5"; "step 6";
game.delayx(); game.delayx();
}, },
}, },