适配寻找subSkill中chooseButton+backup类技能的源头技能
This commit is contained in:
parent
50d1d4fefd
commit
bf96184bcf
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue