函数名修改

This commit is contained in:
yuexin 2020-12-09 20:33:19 +08:00
parent 45c10426ca
commit 19b212ced8
2 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ export class PetHandler {
// this._exap = 0; // this._exap = 0;
}; };
public addEffHalo(skill: Skill): boolean{ private _addEffHalo(skill: Skill): boolean{
if(!this.hasEffHalo(skill)){ if(!this.hasEffHalo(skill)){
this._effhalos.push(skill); this._effhalos.push(skill);
return true; return true;
@ -274,11 +274,11 @@ export class PetHandler {
}; };
// 自己的光环是否加到apet上 // 自己的光环是否加到apet上
public checkHalo(apet: PetHandler): boolean{ public addEffHalo(apet: PetHandler): boolean{
let bok = false; let bok = false;
this._halos.forEach((item: Skill)=>{ this._halos.forEach((item: Skill)=>{
if(item.isEffSelfPet(this, apet)){ if(item.isEffSelfPet(this, apet)){
if(apet.addEffHalo(item)){ if(apet._addEffHalo(item)){
bok = true; bok = true;
} // 暂时都加战力 } // 暂时都加战力
} }

View File

@ -89,7 +89,7 @@ export class PlayerHandler {
public getPet(pet: Pet): PetHandler{ public getPet(pet: Pet): PetHandler{
return this._pets.find((item:PetHandler)=>{ return this._pets.find((item:PetHandler)=>{
return item._pet == pet; return item._pet == pet;
}) });
}; };
public exportAllPets(skill: Skill, param: SkillParam, expet: PetHandler, dst: SkillTarget[]): SkillTarget[]{ public exportAllPets(skill: Skill, param: SkillParam, expet: PetHandler, dst: SkillTarget[]): SkillTarget[]{