| | |
| | | import AttackCommon
|
| | | import GameObj
|
| | | import NPCCommon
|
| | | import GameLogic_ZhuXianTower
|
| | |
|
| | |
|
| | | ## GM命令执行入口
|
| | |
| | | # @remarks 函数详细说明.
|
| | | def OnExec(curPlayer, playerList):
|
| | |
|
| | | if curPlayer.GetMapID() == ChConfig.Def_FBMapID_ZhuXianTower:
|
| | | #诛仙塔击杀怪
|
| | | GameWorld.GetGameFB().SetGameFBDict(GameLogic_ZhuXianTower.FBDict_RemainHP, 1)
|
| | | return
|
| | | |
| | | isMapAllNPC = 0
|
| | | if len(playerList) > 0:
|
| | | isMapAllNPC = playerList[0]
|
| | |
| | | return
|
| | | if not curNPC.GetVisible():
|
| | | return
|
| | | if curPlayer.GetSightLevel() != curNPC.GetSightLevel():
|
| | | return
|
| | | curHP = GameObj.GetHP(curNPC)
|
| | | AttackCommon.NPCAddObjInHurtList(curPlayer, curNPC, curHP, curHP)
|
| | |
|