hxp
6 小时以前 4087d18ce7cbd1578a6e287962bd902386984048
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/SummonNPC_Attack_NormalNPC.py
@@ -33,6 +33,7 @@
import SkillShell
import ChNPC
import GameObj
import TurnAttack
#---------------------------------------------------------------------
#---------------------------------------------------------------------
@@ -58,7 +59,7 @@
def GetTagRelation(curSummonNPC, curTagNormalNPC, skill, tick):
    
    #防守方阵营
    defenderCampType = NPCCommon.GetFaction(curTagNormalNPC)
    defenderCampType = GameObj.GetFaction(curTagNormalNPC)
    
    #玩家的召唤兽才能攻击普通NPC
    npcOwner_Player = NPCCommon.GetSummonNPCOwner(IPY_GameWorld.gotPlayer, curSummonNPC)
@@ -72,7 +73,7 @@
        return ChConfig.Type_Relation_Enemy, ChConfig.Def_PASysMessage_None
    
    #攻击方阵营
    attackerCampType = curSummonNPC.GetDictByKey(ChConfig.Def_NpcDictKey_CampType)
    attackerCampType = GameObj.GetFaction(curSummonNPC)
    if attackerCampType != defenderCampType:
        return ChConfig.Type_Relation_Enemy, ChConfig.Def_PASysMessage_None
    return ChConfig.Type_Relation_Friend, ChConfig.Def_PASysMessage_None
@@ -140,6 +141,9 @@
        return
    #---NPC被击杀---
    if TurnAttack.SetTurnObjKilled(curTagNPC, curSummonNPC):
        return
    #玩家击杀NPC副本触发器
    curPlayer = NPCCommon.GetSummonNPCOwner(IPY_GameWorld.gotPlayer, curSummonNPC)