| | |
| | | import SkillShell
|
| | | import ChNPC
|
| | | import GameObj
|
| | | import TurnAttack
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | |
| | | def GetTagRelation(curSummonNPC, curTagNormalNPC, skill, tick):
|
| | |
|
| | | #防守方阵营
|
| | | defenderCampType = NPCCommon.GetFaction(curTagNormalNPC)
|
| | | defenderCampType = GameObj.GetFaction(curTagNormalNPC)
|
| | |
|
| | | #玩家的召唤兽才能攻击普通NPC
|
| | | npcOwner_Player = NPCCommon.GetSummonNPCOwner(IPY_GameWorld.gotPlayer, curSummonNPC)
|
| | |
| | | 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
|
| | |
| | | return
|
| | |
|
| | | #---NPC被击杀---
|
| | | if TurnAttack.SetTurnObjKilled(curTagNPC, curSummonNPC):
|
| | | return
|
| | | |
| | | #玩家击杀NPC副本触发器
|
| | | curPlayer = NPCCommon.GetSummonNPCOwner(IPY_GameWorld.gotPlayer, curSummonNPC)
|
| | |
|