From cc207773cbedb51c20300a87c62529ace416b086 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 19 九月 2025 19:23:35 +0800 Subject: [PATCH] 129 【战斗】战斗系统-服务端(无敌支持,免疫伤害、dot、控制;小怪技能;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py index 2c03cc5..111c080 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py @@ -652,7 +652,10 @@ ChConfig.AttrID_ParryRate:npcData.GetParryRate(), ChConfig.AttrID_ParryRateDef:npcData.GetParryRateDef(), ChConfig.AttrID_SuckHPPer:npcData.GetSuckHPPer(), ChConfig.AttrID_SuckHPPerDef:npcData.GetSuckHPPerDef(), } - batAttrDict.update(npcData.GetSpecAttrInfo()) + exAttrDict = npcData.GetSpecAttrInfo() + for attrIDStr, attrValue in exAttrDict.items(): + attrID = int(attrIDStr) + batAttrDict[attrID] = batAttrDict.get(attrID, 0) + attrValue battleDict = {"NPCID":npcID, "HeroID":heroID, @@ -1559,7 +1562,7 @@ if SkillCommon.isAngerSkill(useSkill): if curXP < xpMax: continue - if curBatObj.IsInState(ChConfig.BatObjState_Sneer): + if curBatObj.CheckInState(ChConfig.BatObjState_Sneer): GameWorld.DebugLog("嘲讽状态下,无法主动释放怒技!") # 可被动释放怒技,如怒技追击 continue useCnt = -1 # xp技能优先释放 -- Gitblit v1.8.0