| | |
| | | import IPY_GameWorld
|
| | | import IpyGameDataPY
|
| | | import PlayerBossReborn
|
| | | import PlayerActHorsePetFeast
|
| | | import ChPyNetSendPack
|
| | | import NetPackCommon
|
| | | import ShareDefine
|
| | | import PlayerTeam
|
| | | import NPCCommon
|
| | | import ChConfig
|
| | | import GameObj
|
| | |
|
| | |
|
| | | class HurtValueObj():
|
| | |
| | | '''第一个可攻击的最大伤血对象
|
| | | @return: atkPlayer, hurtType, hurtID
|
| | | '''
|
| | | |
| | | import AttackCommon
|
| | | atkPlayer, atkHurtType, atkHurtID = None, 0, 0
|
| | | curNPC = self.curNPC
|
| | | refreshPoint = curNPC.GetRefreshPosAt(curNPC.GetCurRefreshPointIndex())
|
| | |
| | | if player == None:
|
| | | continue
|
| | |
|
| | | if player.GetHP() <= 0 or player.GetPlayerAction() == IPY_GameWorld.paDie:
|
| | | if GameObj.GetHP(player) <= 0 or player.GetPlayerAction() == IPY_GameWorld.paDie:
|
| | | playerDisableReason[playerID] = "dead"
|
| | | continue
|
| | |
|
| | | if not player.GetVisible() or player.GetSightLevel() != curNPC.GetSightLevel():
|
| | | if not player.GetVisible() or not AttackCommon.CheckSightLevel(player, curNPC):
|
| | | playerDisableReason[playerID] = "no visible or sightLevel different"
|
| | | continue
|
| | |
|
| | |
| | | if self.npcID == IpyGameDataPY.GetFuncCfg("BossRebornServerBoss", 3):
|
| | | PlayerBossReborn.DoBossRebornActionBossOnKilledLogic(self)
|
| | |
|
| | | PlayerActHorsePetFeast.DoActBossOnKilledLogic(self)
|
| | | |
| | | ## 同样榜单逻辑的不同功能奖励处理 ...
|
| | |
|
| | | return
|