| | |
| | | import PlayerControl
|
| | | import AttackCommon
|
| | | import ChConfig
|
| | | import ChEquip
|
| | | import GameWorld
|
| | | import EventShell
|
| | | import FBLogic
|
| | | import GameObj
|
| | | import NPCCommon
|
| | | import ChNPC
|
| | | import PlayerTJG
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | |
| | | # @remarks 函数详细说明.
|
| | | def GetCanAttack(curNormalNPC, curTagPlayer, skill, tick):
|
| | | if not AttackCommon.CheckNPCCanAttackTag(curNormalNPC, curTagPlayer, skill):
|
| | | return False
|
| | | |
| | | if PlayerTJG.GetIsTJG(curTagPlayer):
|
| | | # 脱机挂玩家
|
| | | return False
|
| | |
|
| | | return True
|
| | |
| | | playerControl = PlayerControl.PlayerControl(curTagPlayer)
|
| | | playerControl.SetDead()
|
| | | FBLogic.DoFBOnNPCKill_Player(curNormalNPC, curTagPlayer, tick)
|
| | | #触发玩家死亡事件
|
| | | EventShell.EventRespons_PlayerEvent(curTagPlayer, "player_dead")
|
| | | return True
|