导表+诱导技能处理
This commit is contained in:
parent
625a42681b
commit
1f904b6e1c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -4,6 +4,7 @@ export class SkillCfg implements Cfg{
|
|||||||
name: "SkillCfg";
|
name: "SkillCfg";
|
||||||
|
|
||||||
public id: number;
|
public id: number;
|
||||||
|
public skill_nameshow: number;
|
||||||
public skill_typeid: number;
|
public skill_typeid: number;
|
||||||
public affix1id: number;
|
public affix1id: number;
|
||||||
public affix2id: number;
|
public affix2id: number;
|
||||||
@ -54,6 +55,7 @@ export class SkillCfg implements Cfg{
|
|||||||
|
|
||||||
public decode(data: any) {
|
public decode(data: any) {
|
||||||
this.id = data.id;
|
this.id = data.id;
|
||||||
|
this.skill_nameshow = data.skill_nameshow;
|
||||||
this.skill_typeid = data.skill_typeid;
|
this.skill_typeid = data.skill_typeid;
|
||||||
this.affix1id = data.affix1id;
|
this.affix1id = data.affix1id;
|
||||||
this.affix2id = data.affix2id;
|
this.affix2id = data.affix2id;
|
||||||
|
@ -4,6 +4,7 @@ export class UnitCfg implements Cfg{
|
|||||||
name: "UnitCfg";
|
name: "UnitCfg";
|
||||||
|
|
||||||
public id: number;
|
public id: number;
|
||||||
|
public unit_name: number;
|
||||||
public unittypei_id: number;
|
public unittypei_id: number;
|
||||||
public hero_hp: number;
|
public hero_hp: number;
|
||||||
public spell_power: number;
|
public spell_power: number;
|
||||||
@ -23,6 +24,7 @@ export class UnitCfg implements Cfg{
|
|||||||
|
|
||||||
public decode(data: any) {
|
public decode(data: any) {
|
||||||
this.id = data.id;
|
this.id = data.id;
|
||||||
|
this.unit_name = data.unit_name;
|
||||||
this.unittypei_id = data.unittypei_id;
|
this.unittypei_id = data.unittypei_id;
|
||||||
this.hero_hp = data.hero_hp;
|
this.hero_hp = data.hero_hp;
|
||||||
this.spell_power = data.spell_power;
|
this.spell_power = data.spell_power;
|
||||||
|
@ -405,7 +405,8 @@ export class PetHandler {
|
|||||||
// let myap = this.totalAP();
|
// let myap = this.totalAP();
|
||||||
// myap += myap*ev;
|
// 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;
|
let myap = isAtkBack? ev: rv;
|
||||||
|
|
||||||
|
@ -160,7 +160,8 @@ let TriggerManager = {
|
|||||||
let atkback = effectid == SkillEffectType.ATTACK_BACK;
|
let atkback = effectid == SkillEffectType.ATTACK_BACK;
|
||||||
tgts.forEach((item)=>{
|
tgts.forEach((item)=>{
|
||||||
let obj = item.srcpet? item.srcpet: item.srcplayer;
|
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);
|
sender.attack(ev, item, param, atkback);
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user