完善代码,避免错误

This commit is contained in:
yuexin 2021-01-29 17:23:00 +08:00
parent d647870ce2
commit 888b18356d
2 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -11,6 +11,7 @@ import { PetInfo, PetInfoMsg } from "../../../message/PetInfo";
import { SkillParam, SkillTarget } from "../skill/SkillParam"; import { SkillParam, SkillTarget } from "../skill/SkillParam";
import { RemovePetMsg } from "../../../message/RemovePetMsg"; import { RemovePetMsg } from "../../../message/RemovePetMsg";
import { SKillEffectData } from "message/SkillInfo"; import { SKillEffectData } from "message/SkillInfo";
import { error } from "../../../common/Debug";
export class PetHandler { export class PetHandler {
_pet: Pet; _pet: Pet;
@ -179,7 +180,11 @@ export class PetHandler {
}else if(obj.isAPHaloSkill() || obj.isBuffHaloSkill()){ }else if(obj.isAPHaloSkill() || obj.isBuffHaloSkill()){
this._halos.push(obj); this._halos.push(obj);
}else{ }else{
this._waitskills.push(obj); if(obj.triggerType() == TriggerType.NO_COND){
error('waitskill no cond!' + obj._id);
}else{
this._waitskills.push(obj);
}
} }
lst.push(obj); lst.push(obj);
if(bkeep){ if(bkeep){