10263 【英文】【越南】【BT】【砍树】后端支持NPC仿真实玩家战斗和快速战斗(防范剩余血量计算报错;)
1个文件已修改
2 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py
@@ -145,6 +145,8 @@
    
    def CalcHPPer(self):
        ## 结算当前阶段双方阵营剩余血量占比,一般用于结算计算
        if not self.curHPMax or not self.tagHPMax:
            return 0, 0
        curHPPer = round(self.curHP / float(self.curHPMax) * 100, 2)
        tagHPPer = round(self.tagHP / float(self.tagHPMax) * 100, 2)
        return curHPPer, tagHPPer