OL董白黠慧赠毒弹窗修复
This commit is contained in:
parent
e32af85075
commit
4489379788
|
@ -23921,17 +23921,16 @@ game.import("character", function () {
|
||||||
filter: function (event, player) {
|
filter: function (event, player) {
|
||||||
if (event.name == "loseAsync") {
|
if (event.name == "loseAsync") {
|
||||||
if (event.type != "gain") return false;
|
if (event.type != "gain") return false;
|
||||||
var hs = current.getCards("h"),
|
|
||||||
cards = event.getl(player).cards2;
|
|
||||||
return game.hasPlayer(function (current) {
|
return game.hasPlayer(function (current) {
|
||||||
if (current == player) return false;
|
if (current == player) return false;
|
||||||
|
var hs = current.getCards("h"),
|
||||||
|
cards = event.getl(player).cards2;
|
||||||
var cardsx = event.getg(current);
|
var cardsx = event.getg(current);
|
||||||
for (var i of cardsx) {
|
for (var i of cardsx) {
|
||||||
if (
|
if (
|
||||||
|
hs.includes(i) &&
|
||||||
cards.includes(i) &&
|
cards.includes(i) &&
|
||||||
hs.includes(card) &&
|
get.color(i, player) == "black"
|
||||||
cards.includes(card) &&
|
|
||||||
get.color(card, player) == "black"
|
|
||||||
)
|
)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue