xdh
2018-11-22 69af48cc1a7c0a6b71b3464b15bd8ffba4958b5c
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
@@ -58,6 +58,7 @@
import NetPackCommon
import FamilyRobBoss
import FBCommon
import ChNPC
import datetime
import math
@@ -1470,7 +1471,10 @@
    if npcType == IPY_GameWorld.ntElf:
        # ntElf 定义为人物使用对地持续性技能,并且人物可以移动,则需要ntElf做依托物的情况
        # 那么ntElf执行人物的伤害计算和被动触发效果
        owner = NPCCommon.GetSummonNPCOwner(IPY_GameWorld.gotPlayer, attacker)
        # 2018-11-16 Elf 支持主人为NPC
        # owner = NPCCommon.GetSummonNPCOwner(IPY_GameWorld.gotPlayer, attacker)
        owner = NPCCommon.GetSummonOwnerDetel(attacker)
        return attacker if not owner else owner
    
    return attacker
@@ -2454,7 +2458,7 @@
# @param curObjDetel 对象实例
# @return 返回值无意义
# @remarks 理对象死亡逻辑
def DoLogic_ObjDead(curObjDetel):
def DoLogic_ObjDead(atkObj, curObjDetel, curSkill, tick):
    if GameObj.GetHP(curObjDetel) > 0:
        return
    
@@ -2465,6 +2469,10 @@
        return
    
    #---NPC处理---
    if not ChNPC.OnCheckCanDie(atkObj, curObjDetel, curSkill, tick):
        GameObj.SetHP(curObjDetel, 1)
        return
    npcControl = NPCCommon.NPCControl(curObjDetel)
    npcControl.SetKilled()
    return