OL董白黠慧赠毒弹窗修复

This commit is contained in:
lieren2023 2024-04-21 13:04:33 +08:00 committed by GitHub
parent e32af85075
commit 4489379788
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 5 deletions

View File

@ -23921,17 +23921,16 @@ game.import("character", function () {
filter: function (event, player) {
if (event.name == "loseAsync") {
if (event.type != "gain") return false;
var hs = current.getCards("h"),
cards = event.getl(player).cards2;
return game.hasPlayer(function (current) {
if (current == player) return false;
var hs = current.getCards("h"),
cards = event.getl(player).cards2;
var cardsx = event.getg(current);
for (var i of cardsx) {
if (
hs.includes(i) &&
cards.includes(i) &&
hs.includes(card) &&
cards.includes(card) &&
get.color(card, player) == "black"
get.color(i, player) == "black"
)
return true;
}