fixed # 修复部分天书乱斗的问题

This commit is contained in:
2026-10-12 15:10:31 +08:00
parent 0205bbebc6
commit 279f2d9b0a
19 changed files with 888 additions and 103 deletions
+2 -2
View File
@@ -615,7 +615,7 @@ const skills = {
}
if (game.roundNumber < 3 && target.countGainableCards(player, "he") > 0) {
const cards = target.getCards("he").randomGets(Math.min(num, target.countCards("he")));
const cards = target.getGainableCards(player, "he").randomGets(num);
await player.gain(cards, target, "giveAuto");
}
@@ -712,7 +712,7 @@ const skills = {
const gained = [];
for (const target of targets) {
const cards = target.getCards("h").randomGets(Math.min(num, target.countCards("h")));
const cards = target.getGainableCards(player, "h").randomGets(num);
if (cards.length) {
player.line(target);
await player.gain(cards, target, "giveAuto");