修订效果强化问题+导表

This commit is contained in:
yuexin 2021-02-09 16:59:04 +08:00
parent aea1fd6a6f
commit f5f2c0088c
3 changed files with 13 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -379,6 +379,13 @@ export class Skill {
this._startround++;
}
}
let sp: SkillParam;
if(tg_target.isEmpty()){
sp = tg_target.clone();
sp.edd_cnt = this._orign_effcnt;
}else{
sp = tg_target;
}
if(this._tgctrl.checkTrigger(tg_type, tg_value, this._owner, (cdt: CondDecideType, v: number)=>{
if(this.isTotalCardSkill()){
if(cdt == CondDecideType.EQUAL){
@ -388,7 +395,7 @@ export class Skill {
}
}
})){
this.trigger(tg_target, cb, tg_value);
this.trigger(sp, cb, tg_value);
return 1;
}else{
return 0;

View File

@ -52,6 +52,10 @@ export class SkillParam{
this.srcpet = pet;
this.srcplayer = pet._owner;
};
isEmpty(){
return this.cardid == 0 && this.cardpoint == 0;
}
};