From d1aa37504456311fe9d7ddc2f23f537c2408b90c Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 09 一月 2024 11:06:44 +0800 Subject: [PATCH] 10019 【砍树】回合战斗(灵宠通用;技能通用;玩家镜像支持) 1. 灵宠修改为通用模式,玩家及NPC均可召唤灵宠,NPC对应召唤的灵宠NPC与玩家的灵宠NPCID区分; 2. 技能全部为通用技能,玩家、玩家镜像、NPC均通用;支持玩家镜像赋予玩家技能进行攻击; 3. 技能释放方式8(单体恢复:增加方式6-按目标攻击力恢复血量) 4. 修改玩家技能缓存格式 5. 修复玩家灵宠技能升级bug --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py index d1a33bc..37c6264 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py @@ -2101,6 +2101,7 @@ suppressFightPower = max(0, suppressNPCFightPower - PlayerControl.GetFightPower(defObj)) mustHit = False + petNPCOwner = None helpBattleFormatKey = "" if atkObjType == IPY_GameWorld.gotNPC and atkObj.GetType() == ChConfig.ntHelpBattleRobot: mustHit = True @@ -2116,6 +2117,7 @@ helpBattleFormatKey = "HelpRobot_Def" if atkObjType == IPY_GameWorld.gotNPC and PetControl.IsPetNPC(atkObj): mustHit = True + petNPCOwner = PetControl.GetPetNPCOwner(atkObj) #命中公式 攻击方类型不同,公式不同 hitFormula = ReadChConfig.GetChConfig('CalcCanHit') @@ -2218,7 +2220,12 @@ #------- 攻击方 aMinAtk = atkObj.GetMinAtk() * summonAtkPer # 攻击方最小攻击 aMaxAtk = atkObj.GetMaxAtk() * summonAtkPer # 攻击方最大攻击 - + if petNPCOwner: + #主人攻击力可能会变化,所以在这里用到时直接取 + aMinAtk = petNPCOwner.GetMinAtk() * summonAtkPer # 攻击方最小攻击 + aMaxAtk = petNPCOwner.GetMaxAtk() * summonAtkPer # 攻击方最大攻击 + #GameWorld.DebugLog("灵宠攻击,直接取主人攻击力: %s ~ %s, 自己: %s ~ %s" % (aMinAtk, aMaxAtk, atkObj.GetMinAtk(), atkObj.GetMaxAtk())) + aIceAtk = atkObj.GetIceAtk() # 冰攻, 元素真伤, 玩家及NPC通用 aIceAtk += PassiveBuffEffMng.GetPassiveSkillValueByTriggerType(atkObj, defObj, curSkill, ChConfig.TriggerType_AddIceAtk) #------- 防守方 -- Gitblit v1.8.0