导表+诱导技能处理

This commit is contained in:
yuexin 2021-01-07 21:01:57 +08:00
parent 625a42681b
commit 1f904b6e1c
6 changed files with 10 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4,6 +4,7 @@ export class SkillCfg implements Cfg{
name: "SkillCfg";
public id: number;
public skill_nameshow: number;
public skill_typeid: number;
public affix1id: number;
public affix2id: number;
@ -54,6 +55,7 @@ export class SkillCfg implements Cfg{
public decode(data: any) {
this.id = data.id;
this.skill_nameshow = data.skill_nameshow;
this.skill_typeid = data.skill_typeid;
this.affix1id = data.affix1id;
this.affix2id = data.affix2id;

View File

@ -4,6 +4,7 @@ export class UnitCfg implements Cfg{
name: "UnitCfg";
public id: number;
public unit_name: number;
public unittypei_id: number;
public hero_hp: number;
public spell_power: number;
@ -23,6 +24,7 @@ export class UnitCfg implements Cfg{
public decode(data: any) {
this.id = data.id;
this.unit_name = data.unit_name;
this.unittypei_id = data.unittypei_id;
this.hero_hp = data.hero_hp;
this.spell_power = data.spell_power;

View File

@ -405,7 +405,8 @@ export class PetHandler {
// let myap = this.totalAP();
// myap += myap*ev;
let rv = sk.getEffValue(param.edd_cnt, param.cardpoint, this.totalAP());
// let rv = sk.getEffValue(param.edd_cnt, param.cardpoint, this.totalAP());
let rv = this.totalAP();
let myap = isAtkBack? ev: rv;

View File

@ -160,7 +160,8 @@ let TriggerManager = {
let atkback = effectid == SkillEffectType.ATTACK_BACK;
tgts.forEach((item)=>{
let obj = item.srcpet? item.srcpet: item.srcplayer;
let ev = atkback? sender.getEffValue(0, 0, obj.bakTotalAP()): 0;
// let ev = atkback? sender.getEffValue(0, 0, obj.bakTotalAP()): 0;
let ev = atkback? obj.bakTotalAP(): 0;
sender.attack(ev, item, param, atkback);
});
break;