修正SkillMan无法找到loadData的bug
This commit is contained in:
parent
7558e992fa
commit
60a708f82d
@ -6,8 +6,8 @@ import {SkillCfg} from "../cfg/parsers/SkillCfg";
|
||||
import {SystemCardCfg} from "../cfg/parsers/SystemCardCfg";
|
||||
import {UnitCfg} from "../cfg/parsers/UnitCfg";
|
||||
import {BaseConst} from "../constants/BaseConst";
|
||||
import SkillMan from "../rooms/logic/skill/SkillMan";
|
||||
|
||||
let SkillMan = require('../rooms/logic/skill/SkillMan');
|
||||
|
||||
export function initData() {
|
||||
const rP = DataParser.regCommonParser.bind(DataParser);
|
||||
|
@ -7,7 +7,7 @@ import SkillMan from "../skill/SkillMan";
|
||||
|
||||
import { EnhanceEffectType, PowerValueType } from "../skill/SkillConst";
|
||||
import { PlayerHandler } from "./PlayerHandler";
|
||||
import { PetInfoMsg } from "message/PetInfo";
|
||||
import { PetInfoMsg } from "../../../message/PetInfo";
|
||||
|
||||
export class PetHandler {
|
||||
_pet: Pet;
|
||||
@ -28,8 +28,8 @@ export class PetHandler {
|
||||
|
||||
_isHero: boolean = false;
|
||||
|
||||
_selfskills: number[];
|
||||
_exskills: number[];
|
||||
_selfskills: number[] = [];
|
||||
_exskills: number[] = [];
|
||||
|
||||
public init(apet: Pet, owner: PlayerHandler){
|
||||
this._pet = apet;
|
||||
@ -143,7 +143,7 @@ export class PetHandler {
|
||||
|
||||
public die(){
|
||||
this._dieSkills.forEach((item: Skill)=>{
|
||||
|
||||
|
||||
});
|
||||
|
||||
this._owner && this._owner.onPetDied(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user