验证专属技能

This commit is contained in:
ciniao 2024-01-10 14:08:33 +08:00
parent 4c37d4c846
commit 0642ccb48c

View File

@ -151,25 +151,25 @@ export class FightControl {
beforeSkill() { beforeSkill() {
this.eachLiveRoles((role) => { this.eachLiveRoles((role) => {
let heroId = role.roleData.heroId; let heroId = role.roleData.heroId;
let shiwu = role.roleData?.shiwu || {}; // let shiwu = role.roleData?.shiwu || {};
let talent = role.roleData?.talent || {}; // let talent = role.roleData?.talent || {};
let skills = G.gc.heroskill[heroId][role.roleData.jieji || 0].bdskill || []; let skills = G.gc.heroskill[heroId][role.roleData.jieji || 0].bdskill || [];
skills = skills.concat(role.roleData.attr.skillArr); skills = skills.concat(role.roleData.attr.skillArr);
for (let key in shiwu) { // for (let key in shiwu) {
let zhushuan = shiwu[key]?.zhuanshu; // let zhushuan = shiwu[key]?.zhuanshu;
if (!zhushuan) continue; // if (!zhushuan) continue;
if (zhushuan.skill) skills.push(zhushuan.skill); // if (zhushuan.skill) skills.push(zhushuan.skill);
}; // };
const hero_tf = G.gc.hero_tf; // const hero_tf = G.gc.hero_tf;
for (let key in talent) { // for (let key in talent) {
let cdata = hero_tf[key][talent[key]]; // let cdata = hero_tf[key][talent[key]];
if (cdata && cdata.skill_effect) skills.push(cdata.skill_effect); // if (cdata && cdata.skill_effect) skills.push(cdata.skill_effect);
} // }
// skills.push('tx06309'); // skills.push('tx06309');
if (!skills) return; //if (!skills) return;
skills.forEach(_skill => { skills.forEach(_skill => {
let askillconf = getSkillConf(_skill); let askillconf = getSkillConf(_skill);
if (!askillconf) return console.log('没有技能配置-->', _skill); if (!askillconf) return console.log('没有技能配置-->', _skill);