函数名修改
This commit is contained in:
parent
45c10426ca
commit
19b212ced8
@ -92,7 +92,7 @@ export class PetHandler {
|
||||
// this._exap = 0;
|
||||
};
|
||||
|
||||
public addEffHalo(skill: Skill): boolean{
|
||||
private _addEffHalo(skill: Skill): boolean{
|
||||
if(!this.hasEffHalo(skill)){
|
||||
this._effhalos.push(skill);
|
||||
return true;
|
||||
@ -274,11 +274,11 @@ export class PetHandler {
|
||||
};
|
||||
|
||||
// 自己的光环是否加到apet上
|
||||
public checkHalo(apet: PetHandler): boolean{
|
||||
public addEffHalo(apet: PetHandler): boolean{
|
||||
let bok = false;
|
||||
this._halos.forEach((item: Skill)=>{
|
||||
if(item.isEffSelfPet(this, apet)){
|
||||
if(apet.addEffHalo(item)){
|
||||
if(apet._addEffHalo(item)){
|
||||
bok = true;
|
||||
} // 暂时都加战力
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ export class PlayerHandler {
|
||||
public getPet(pet: Pet): PetHandler{
|
||||
return this._pets.find((item:PetHandler)=>{
|
||||
return item._pet == pet;
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
public exportAllPets(skill: Skill, param: SkillParam, expet: PetHandler, dst: SkillTarget[]): SkillTarget[]{
|
||||
|
Loading…
x
Reference in New Issue
Block a user