Merge branch 'libccy:PR-Branch' into PR-Branch

This commit is contained in:
mengxinzxz 2024-01-31 00:06:23 +08:00 committed by GitHub
commit ea380a8922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -8114,10 +8114,12 @@ export const Content = {
}, },
addJudge: function () { addJudge: function () {
"step 0"; "step 0";
const cardName = typeof card == 'string' ? card : card.name , cardInfo = lib.card[cardName];
if (cards) { if (cards) {
var owner = get.owner(cards[0]); var owner = get.owner(cards[0]);
if (owner) { if (owner) {
event.relatedLose = owner.lose(cards, 'visible', ui.special).set('getlx', false); event.relatedLose = owner.lose(cards, ui.special).set('getlx', false);
if (cardInfo && !cardInfo.blankCard) event.relatedLose.set('visible',true);
} }
else if (get.position(cards[0]) == 'c') event.updatePile = true; else if (get.position(cards[0]) == 'c') event.updatePile = true;
} }