xdh
2018-10-16 4d05b52d78b592673bd93dd29f1668147cf89039
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py
@@ -519,9 +519,10 @@
# @return 布尔值
def CheckSkillTrigger(curNPC, triggerDict, npcSkillindex, tick):
    skillInfo = triggerDict.get(npcSkillindex)
    if skillInfo != None:
        #当前血量
        hpPercent = int(curNPC.GetHP()/float(GameObj.GetMaxHP(curNPC))*100)
        hpPercent = int(GameObj.GetHP(curNPC)/float(GameObj.GetMaxHP(curNPC))*100)
        checkHP = skillInfo[0]
        
        #血量未到