适配寻找subSkill中chooseButton+backup类技能的源头技能

This commit is contained in:
mengxinzxz 2024-06-07 01:36:29 +08:00
parent 50d1d4fefd
commit bf96184bcf
2 changed files with 3 additions and 2 deletions

View File

@ -7220,6 +7220,7 @@ export class Game {
const iValue = `${i}_${value}`;
lib.skill[iValue] = info.subSkill[value];
lib.skill[iValue].sub = true;
if (!info.subSkill[value].sourceSkill) lib.skill[iValue].sourceSkill = i;
if (info.subSkill[value].name) lib.translate[iValue] = info.subSkill[value].name;
else lib.translate[iValue] = lib.translate[iValue] || lib.translate[i];
if (info.subSkill[value].description) lib.translate[`${iValue}_info`] = info.subSkill[value].description;

View File

@ -3682,7 +3682,7 @@ export const Content = {
info.chooseControl ? result : result.links,
player
);
lib.skill[event.buttoned + "_backup"].sourceSkill = event.buttoned;
lib.skill[event.buttoned + "_backup"].sourceSkill = lib.skill[event.buttoned].sourceSkill ? lib.skill[event.buttoned].sourceSkill : event.buttoned;
if (game.online) {
event._sendskill = [event.buttoned + "_backup", lib.skill[event.buttoned + "_backup"]];
} else {
@ -3894,7 +3894,7 @@ export const Content = {
info.chooseControl ? result : result.links,
player
);
lib.skill[event.buttoned + "_backup"].sourceSkill = event.buttoned;
lib.skill[event.buttoned + "_backup"].sourceSkill = lib.skill[event.buttoned].sourceSkill ? lib.skill[event.buttoned].sourceSkill : event.buttoned;
if (game.online) {
event._sendskill = [event.buttoned + "_backup", lib.skill[event.buttoned + "_backup"]];
} else {