hxp
6 天以前 26958aff1b844a743a805b4f9075bee800b72a46
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_Tianzi.py
@@ -27,6 +27,7 @@
import ShareDefine
import PlayerMail
import DBDataMgr
import TurnSkill
import ObjPool
def OnDay():
@@ -90,7 +91,7 @@
        return {}
    return __getBossAttrDict(ipyDataList[0])
def OnFBNPCKilledBefore(curPlayer, turnFight, gameObj, killer):
def OnFBNPCKilledBefore(curPlayer, turnFight, gameObj, killer=None, useSkill=None):
    ## 副本NPC被击杀前处理,一般用于处理一些不被击杀的副本NPC逻辑
    # @return: 可否被正常击杀
    
@@ -120,11 +121,12 @@
        GameWorld.Log("天子考验全部血条被击杀! totalHPMax=%s,statDefValueTotal=%s" % (totalHPMax, statDefValueTotal))
        return True
    
    gameObj.SetMaxHP(ipyDataNow.GetMaxHP(), True)
    gameObj.SetHP(hp, True)
    gameObj.SetMaxHP(ipyDataNow.GetMaxHP(), False)
    gameObj.SetHP(hp, False)
    GameWorld.DebugLog("更新NPC血条: hpNum=%s,hp=%s/%s, statDefValueTotal=%s" % (hpNum, gameObj.GetHP(), gameObj.GetMaxHP(), statDefValueTotal))
    TurnSkill.Sync_HPRefresh(turnFight, gameObj)
    turnFight.SetDict("hpNum", hpNum)
    turnFight.syncHelp({"hpNum":hpNum})
    #turnFight.syncHelp({"hpNum":hpNum})
    gameObj.UpdInitBatAttr(__getBossAttrDict(ipyDataNow))
    return False