hxp
昨天 9d5ec7599f3abe0cebb76ce1df3c3b8c4e0aa51e
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BattleObj.py
@@ -882,6 +882,12 @@
        curSkill = PySkill(ipyData, self._batObj.GetID())
        self._skillDict[skillID] = curSkill
        self._skillList.append(curSkill)
        learnSkillExEff = curSkill.GetEffectByID(ChConfig.SkillEff_LearnSkillEx)
        if learnSkillExEff:
            skillIDEx = learnSkillExEff.GetEffectValue(0)
            if skillIDEx:
                self.LearnSkillByID(skillIDEx)
        return curSkill
    
    def __deleteSkill(self, curSkill):
@@ -1037,6 +1043,15 @@
    def GetPosNum(self): return self.posNum
    def GetFaction(self): return self.faction
    def SetFaction(self, faction): self.faction = faction
    def GetBatObjType(self):
        ## 战斗对象实例类型
        if 1 <= self.posNum <= ShareDefine.LineupObjMax:
            return ChConfig.BatObjType_BatHero
        if self.posNum == ChConfig.TFPosNum_Mingge:
            return ChConfig.BatObjType_Mingge
        if ChConfig.TFPosNum_Lingshou <= self.posNum:
            return ChConfig.BatObjType_Lingshou
        return 0
    def GetFightPower(self): return self.fightPower
    def SetFightPower(self, fightPower): self.fightPower = fightPower
    def GetLV(self): return self.lv