From b7b26c834c51a76e419faacde84efcf5d6525f86 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 01 二月 2024 15:09:36 +0800 Subject: [PATCH] 10019 【砍树】回合战斗(增加灵兽协同攻击支持;增加灵兽释放技能触发被动;增加精怪复活方式;被动触发的技能造成伤害改为不吸血;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PetControl.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PetControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PetControl.py index 2c7a221..38fb20c 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PetControl.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PetControl.py @@ -124,6 +124,16 @@ return #--------------------------------------------------------------------- +def GetFightPet(curObj, placeNum=1): + ## 获取对应战斗位置灵宠实例 + for index in range(curObj.GetSummonCount()): + curSummonNPC = curObj.GetSummonNPCAt(index) + if not IsPetNPC(curSummonNPC): + continue + if placeNum and placeNum == curSummonNPC.GetDictByKey(ChConfig.Def_Obj_Dict_FightPetPlaceNum): + return curSummonNPC + return + def CalloutFightPet(curObj, petCacheInfo): ## 召唤出战上阵的灵宠 # @param curObj: 灵宠所属战斗实例 -- Gitblit v1.8.0