修订目标选择

This commit is contained in:
yuexin 2020-12-09 16:46:39 +08:00
parent bfe66d9d7f
commit fc18c461db
2 changed files with 7 additions and 0 deletions

View File

@ -232,6 +232,10 @@ export class BattleHandler {
pt *= obj.dbpt_cnt;
}
if(!dstph){
dstph = ph;
}
let ps = new SkillParam(obj.card, pt, obj.eff_cnt, ph, null, dstph, dstpt);
ph.useCard(ps);

View File

@ -135,6 +135,9 @@ export class PlayerHandler {
return false;
}
obj.srcpet = pet;
if(!obj.dstpet){
obj.dstpet = pet;
}
pet.loadData(cfg.stageunit_id, obj,
[cfg.quoteskill1id, cfg.quoteskill2id, cfg.quoteskill3id, cfg.quoteskill4id]);
}else if(cfg.type_id == EffectCardType.MAGIC){