Merge pull request #1443 from mengxinzxz/PR-Branch

适配寻找subSkill中chooseButton+backup类技能的源头技能
This commit is contained in:
Spmario233 2024-06-07 15:30:13 +08:00 committed by GitHub
commit 9b944f6148
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 {