牵招 涉及改判技能时bug修复
This commit is contained in:
parent
9e674d4124
commit
20022976f3
|
@ -3406,19 +3406,18 @@ const skills = {
|
||||||
return player.hasCard(card => lib.filter.cardDiscardable(card, player), "he");
|
return player.hasCard(card => lib.filter.cardDiscardable(card, player), "he");
|
||||||
},
|
},
|
||||||
check: function (card) {
|
check: function (card) {
|
||||||
var player = _status.event.player;
|
var player = get.player();
|
||||||
return (5 - get.value(card)) / Math.pow(Math.max(0.1, player.getUseValue(card)), 0.33);
|
return (5 - get.value(card)) / Math.pow(Math.max(0.1, player.getUseValue(card)), 0.33);
|
||||||
},
|
},
|
||||||
content: function () {
|
content: function () {
|
||||||
"step 0";
|
"step 0";
|
||||||
player
|
player.judge(card => {
|
||||||
.judge(card => {
|
var evt = get.event().getParent("olweifu");
|
||||||
var evt = _status.event.getParent();
|
if (evt.name !== "olweifu") return 0;
|
||||||
var cardx = evt.cards[0];
|
var cardx = evt.cards[0];
|
||||||
if (get.type2(card) == get.type2(cardx)) return 0.5;
|
if (get.type2(card) == get.type2(cardx)) return 0.5;
|
||||||
return 0.1;
|
return 0.1;
|
||||||
})
|
}).set("callback", function () {
|
||||||
.set("callback", function () {
|
|
||||||
var card = event.judgeResult.card;
|
var card = event.judgeResult.card;
|
||||||
player.addTempSkill("olweifu_clear");
|
player.addTempSkill("olweifu_clear");
|
||||||
player.addTempSkill("olweifu_add");
|
player.addTempSkill("olweifu_add");
|
||||||
|
@ -3428,8 +3427,7 @@ const skills = {
|
||||||
player.storage.olweifu_add[type]++;
|
player.storage.olweifu_add[type]++;
|
||||||
player.markSkill("olweifu_add");
|
player.markSkill("olweifu_add");
|
||||||
if (type == get.type2(event.getParent(2).cards[0], player)) player.draw();
|
if (type == get.type2(event.getParent(2).cards[0], player)) player.draw();
|
||||||
})
|
}).set("judge2", result => result.bool);
|
||||||
.set("judge2", result => result.bool);
|
|
||||||
},
|
},
|
||||||
ai: {
|
ai: {
|
||||||
order: 7,
|
order: 7,
|
||||||
|
@ -3447,9 +3445,7 @@ const skills = {
|
||||||
1 >
|
1 >
|
||||||
(get.is.object(player.storage.olweifu_add) ? player.storage.olweifu_add[type] || 0 : 0)
|
(get.is.object(player.storage.olweifu_add) ? player.storage.olweifu_add[type] || 0 : 0)
|
||||||
);
|
);
|
||||||
}, "hs")
|
}, "hs") ? 1 : 0;
|
||||||
? 1
|
|
||||||
: 0;
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue