修改tempBanSkill参数使其可永久禁用技能
This commit is contained in:
parent
da4ced889a
commit
e164f9fdb0
|
@ -5604,7 +5604,7 @@ export const Content = {
|
||||||
controls.remove("cancel2");
|
controls.remove("cancel2");
|
||||||
if ((event.direct && controls.length == 1) || event.forceDirect) {
|
if ((event.direct && controls.length == 1) || event.forceDirect) {
|
||||||
event.result = {
|
event.result = {
|
||||||
control: event.controls[0].link,
|
control: event.controls[0],
|
||||||
links: get.links([event.controls[0]]),
|
links: get.links([event.controls[0]]),
|
||||||
};
|
};
|
||||||
return;
|
return;
|
||||||
|
@ -5620,7 +5620,7 @@ export const Content = {
|
||||||
controls.remove("cancel2");
|
controls.remove("cancel2");
|
||||||
if ((event.direct && controls.length == 1) || event.forceDirect) {
|
if ((event.direct && controls.length == 1) || event.forceDirect) {
|
||||||
event.result = {
|
event.result = {
|
||||||
control: event.controls[0].link,
|
control: event.controls[0],
|
||||||
links: get.links([event.controls[0]]),
|
links: get.links([event.controls[0]]),
|
||||||
};
|
};
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -8037,19 +8037,21 @@ export class Player extends HTMLDivElement {
|
||||||
|
|
||||||
if (log !== false && this.hasSkill(skill)) game.log(this, "的技能", `#g【${get.translation(skill)}】`, "暂时失效了");
|
if (log !== false && this.hasSkill(skill)) game.log(this, "的技能", `#g【${get.translation(skill)}】`, "暂时失效了");
|
||||||
|
|
||||||
if (!expire) expire = { global: ["phaseAfter", "phaseBeforeStart"] };
|
if (expire !== "forever") {
|
||||||
else if (typeof expire == "string" || Array.isArray(expire)) expire = { global: expire };
|
if (!expire) expire = { global: ["phaseAfter", "phaseBeforeStart"] };
|
||||||
this.when(expire, false)
|
else if (typeof expire == "string" || Array.isArray(expire)) expire = { global: expire };
|
||||||
.assign({
|
this.when(expire, false)
|
||||||
firstDo: true,
|
.assign({
|
||||||
})
|
firstDo: true,
|
||||||
.vars({
|
})
|
||||||
bannedSkill: skill,
|
.vars({
|
||||||
})
|
bannedSkill: skill,
|
||||||
.then(() => {
|
})
|
||||||
delete player.storage[`temp_ban_${bannedSkill}`];
|
.then(() => {
|
||||||
})
|
delete player.storage[`temp_ban_${bannedSkill}`];
|
||||||
.finish();
|
})
|
||||||
|
.finish();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return skill;
|
return skill;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue