| | |
| | | PlayerState.SetBossStateTick(atkObj, tick)
|
| | | return
|
| | |
|
| | | def OnCheckCanDie(atkObj, curNPC, skill, tick):
|
| | | ## 检查NPC是否可死亡
|
| | | dropOwnerType = NPCCommon.GetDropOwnerType(curNPC)
|
| | | if dropOwnerType not in [ChConfig.DropOwnerType_MaxHurt]:
|
| | | return True
|
| | | tagObj = __RefreshDropOwner(curNPC, tick, 0)
|
| | | if not atkObj or not tagObj:
|
| | | GameObj.SetHP(curNPC, 1)
|
| | | GameWorld.ErrLog("Boss当前状态下不可以死亡!npcID=%s" % curNPC.GetNPCID())
|
| | | return False
|
| | | return True
|
| | |
|
| | | ## NPC被玩家杀死
|
| | | def OnAttackDieByPlayer(curNPC, curPlayer, skill):
|
| | | tick = GameWorld.GetGameWorld().GetTick()
|