| | |
| | | import NetPackCommon
|
| | | import FamilyRobBoss
|
| | | import FBCommon
|
| | | import ChNPC
|
| | |
|
| | | import datetime
|
| | | import math
|
| | |
| | | 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
|
| | |
| | | # @param curObjDetel 对象实例
|
| | | # @return 返回值无意义
|
| | | # @remarks 理对象死亡逻辑
|
| | | def DoLogic_ObjDead(curObjDetel):
|
| | | def DoLogic_ObjDead(atkObj, curObjDetel, curSkill, tick):
|
| | | if GameObj.GetHP(curObjDetel) > 0:
|
| | | return
|
| | |
|
| | |
| | | return
|
| | |
|
| | | #---NPC处理---
|
| | | if not ChNPC.OnCheckCanDie(atkObj, curObjDetel, curSkill, tick):
|
| | | GameObj.SetHP(curObjDetel, 1)
|
| | | return
|
| | | |
| | | npcControl = NPCCommon.NPCControl(curObjDetel)
|
| | | npcControl.SetKilled()
|
| | | return
|