hch
昨天 3bc2e9aae7e595d5be896a9db4c909b76fa6f5be
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/NormalNPC_Attack_Player.py
@@ -19,14 +19,10 @@
import PlayerControl
import AttackCommon
import ChConfig
import ChEquip
import GameWorld
import EventShell
import FBLogic
import GameObj
import NPCCommon
import ChNPC
import PlayerTJG
#---------------------------------------------------------------------
#---------------------------------------------------------------------
@@ -40,10 +36,6 @@
#  @remarks 函数详细说明.
def GetCanAttack(curNormalNPC, curTagPlayer, skill, tick):
    if not AttackCommon.CheckNPCCanAttackTag(curNormalNPC, curTagPlayer, skill):
        return False
    if PlayerTJG.GetIsTJG(curTagPlayer):
        # 脱机挂玩家
        return False
    
    return True
@@ -126,6 +118,4 @@
        playerControl = PlayerControl.PlayerControl(curTagPlayer)
        playerControl.SetDead()
        FBLogic.DoFBOnNPCKill_Player(curNormalNPC, curTagPlayer, tick)
        #触发玩家死亡事件
        EventShell.EventRespons_PlayerEvent(curTagPlayer, "player_dead")
    return True