修复多次废除判定区会叠加废除标记的bug

This commit is contained in:
mengxinzxz 2024-03-05 20:46:06 +08:00
parent 3c6d3deb73
commit 8aa7eff602
1 changed files with 4 additions and 1 deletions

View File

@ -2055,8 +2055,11 @@ export class Player extends HTMLDivElement {
return true;
}
$disableJudge() {
game.addVideo('$disableJudge', this);
this.storage._disableJudge = true;
for (let i = 0; i < this.node.judges.childNodes.length; i++) {
if (this.node.judges.childNodes[i].classList.contains('feichu')) return;
}
game.addVideo('$disableJudge', this);
var card = game.createCard('disable_judge', '', '');
card.fix();
card.classList.add('feichu');