调整出牌阶段的牌数限制计算刷新时间点
This commit is contained in:
parent
663c03a536
commit
9d973a6555
|
@ -2776,6 +2776,23 @@ export const Content = {
|
||||||
if (!event.logged) {
|
if (!event.logged) {
|
||||||
game.log(player, '进入了出牌阶段');
|
game.log(player, '进入了出牌阶段');
|
||||||
event.logged = true;
|
event.logged = true;
|
||||||
|
const stat = player.getStat();
|
||||||
|
for (let i in stat.skill) {
|
||||||
|
let bool = false;
|
||||||
|
const info = lib.skill[i];
|
||||||
|
if (!info) continue;
|
||||||
|
if (info.enable != undefined) {
|
||||||
|
if (typeof info.enable == 'string' && info.enable == 'phaseUse') bool = true;
|
||||||
|
else if (typeof info.enable == 'object' && info.enable.includes('phaseUse')) bool = true;
|
||||||
|
}
|
||||||
|
if (bool) stat.skill[i] = 0;
|
||||||
|
}
|
||||||
|
for (let i in stat.card) {
|
||||||
|
let bool = false;
|
||||||
|
const info = lib.card[i];
|
||||||
|
if (!info) continue;
|
||||||
|
if (info.updateUsable == 'phaseUse') stat.card[i] = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
var next = player.chooseToUse();
|
var next = player.chooseToUse();
|
||||||
if (!lib.config.show_phaseuse_prompt) {
|
if (!lib.config.show_phaseuse_prompt) {
|
||||||
|
@ -2792,24 +2809,6 @@ export const Content = {
|
||||||
delete ui.tempnowuxie;
|
delete ui.tempnowuxie;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
"step 2";
|
|
||||||
var stat = player.getStat();
|
|
||||||
for (var i in stat.skill) {
|
|
||||||
var bool = false;
|
|
||||||
var info = lib.skill[i];
|
|
||||||
if (!info) continue;
|
|
||||||
if (info.enable != undefined) {
|
|
||||||
if (typeof info.enable == 'string' && info.enable == 'phaseUse') bool = true;
|
|
||||||
else if (typeof info.enable == 'object' && info.enable.includes('phaseUse')) bool = true;
|
|
||||||
}
|
|
||||||
if (bool) stat.skill[i] = 0;
|
|
||||||
}
|
|
||||||
for (var i in stat.card) {
|
|
||||||
var bool = false;
|
|
||||||
var info = lib.card[i];
|
|
||||||
if (!info) continue;
|
|
||||||
if (info.updateUsable == 'phaseUse') stat.card[i] = 0;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
phaseDiscard: function () {
|
phaseDiscard: function () {
|
||||||
"step 0";
|
"step 0";
|
||||||
|
|
Loading…
Reference in New Issue