修改tempBanSkill参数使其可永久禁用技能

This commit is contained in:
copcap 2024-05-18 20:02:03 +08:00
parent da4ced889a
commit e164f9fdb0
No known key found for this signature in database
GPG Key ID: 30E7AB6699451AEE
2 changed files with 17 additions and 15 deletions

View File

@ -5604,7 +5604,7 @@ export const Content = {
controls.remove("cancel2");
if ((event.direct && controls.length == 1) || event.forceDirect) {
event.result = {
control: event.controls[0].link,
control: event.controls[0],
links: get.links([event.controls[0]]),
};
return;
@ -5620,7 +5620,7 @@ export const Content = {
controls.remove("cancel2");
if ((event.direct && controls.length == 1) || event.forceDirect) {
event.result = {
control: event.controls[0].link,
control: event.controls[0],
links: get.links([event.controls[0]]),
};
return;

View File

@ -8037,6 +8037,7 @@ export class Player extends HTMLDivElement {
if (log !== false && this.hasSkill(skill)) game.log(this, "的技能", `#g【${get.translation(skill)}`, "暂时失效了");
if (expire !== "forever") {
if (!expire) expire = { global: ["phaseAfter", "phaseBeforeStart"] };
else if (typeof expire == "string" || Array.isArray(expire)) expire = { global: expire };
this.when(expire, false)
@ -8051,6 +8052,7 @@ export class Player extends HTMLDivElement {
})
.finish();
}
}
return skill;
}
isTempBanned(skill) {