fix player undefined

This commit is contained in:
yuexin 2020-12-04 21:25:12 +08:00
parent 7ca339319f
commit f3c619f162
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ export class BattleHandler {
if(src){
lst.push(src);
let obj = this.getFriend(src);
lst.push(obj);
obj && lst.push(obj);
}
break;
case GameCampType.ENEMY:

View File

@ -144,7 +144,7 @@ export class PlayerHandler {
let lst = sk.checkTrigger(TriggerType.NO_COND, 0, obj);
res = res.concat(lst);
});
//todo:
//todo: build json -> client
};
public newSkill(skillid: number): Skill{