Update content.js
防止chooseButton类技能生成的backup技能覆盖已封装技能中存在的sourceSkill
This commit is contained in:
parent
f7f3d7c694
commit
6ea676553a
|
@ -3682,7 +3682,9 @@ export const Content = {
|
||||||
info.chooseControl ? result : result.links,
|
info.chooseControl ? result : result.links,
|
||||||
player
|
player
|
||||||
);
|
);
|
||||||
lib.skill[event.buttoned + "_backup"].sourceSkill = event.buttoned;
|
if (!lib.skill[event.buttoned + "_backup"].sourceSkill) {
|
||||||
|
lib.skill[event.buttoned + "_backup"].sourceSkill = event.buttoned;
|
||||||
|
}
|
||||||
if (game.online) {
|
if (game.online) {
|
||||||
event._sendskill = [event.buttoned + "_backup", lib.skill[event.buttoned + "_backup"]];
|
event._sendskill = [event.buttoned + "_backup", lib.skill[event.buttoned + "_backup"]];
|
||||||
} else {
|
} else {
|
||||||
|
@ -3894,7 +3896,9 @@ export const Content = {
|
||||||
info.chooseControl ? result : result.links,
|
info.chooseControl ? result : result.links,
|
||||||
player
|
player
|
||||||
);
|
);
|
||||||
lib.skill[event.buttoned + "_backup"].sourceSkill = event.buttoned;
|
if (!lib.skill[event.buttoned + "_backup"].sourceSkill) {
|
||||||
|
lib.skill[event.buttoned + "_backup"].sourceSkill = event.buttoned;
|
||||||
|
}
|
||||||
if (game.online) {
|
if (game.online) {
|
||||||
event._sendskill = [event.buttoned + "_backup", lib.skill[event.buttoned + "_backup"]];
|
event._sendskill = [event.buttoned + "_backup", lib.skill[event.buttoned + "_backup"]];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue