| | |
| | | '''第一个可攻击的最大伤血对象
|
| | | @return: atkPlayer, hurtType, hurtID
|
| | | '''
|
| | | |
| | | import AttackCommon
|
| | | atkPlayer, atkHurtType, atkHurtID = None, 0, 0
|
| | | curNPC = self.curNPC
|
| | | refreshPoint = curNPC.GetRefreshPosAt(curNPC.GetCurRefreshPointIndex())
|
| | |
| | | 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
|
| | |
|