From 95c731d5e1a9aadb610ac9f6ecbc6b74b919ab60 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 28 二月 2026 17:05:35 +0800
Subject: [PATCH] 417 【武将】吞噬返还优化(固定额外返还一个本体遣散道具;优化吞噬星级溢出逻辑;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py | 30 ++++++------------------------
1 files changed, 6 insertions(+), 24 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py
index 639f63e..3f602b2 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py
@@ -21,10 +21,8 @@
import SkillShell
import PassiveBuffEffMng
import ChNetSendPack
-import PlayerTJG
import OperControlManager
import GameObj
-import CrossPlayerData
import AttackCommon
#---------------------------------------------------------------------
@@ -41,13 +39,7 @@
if curObj == None:
# 避免配表错误导致报错
return False
-
- if GameWorld.GetMap().GetMapID() == ChConfig.Def_FBMapID_GatherSoul and curObj.GetGameObjType() == IPY_GameWorld.gotNPC:
- if curSkill.GetSkillTypeID() != 23052:
- #GameWorld.DebugLog('聚魂副本玩家不能对怪物上buff curSkill=%s,buffOwner=%s'%(curSkill.GetSkillTypeID(),buffOwner.GetID()))
- return True
- #GameWorld.DebugLog('聚魂副本对怪物上buff curSkill=%s,buffOwner=%s'%(curSkill.GetSkillTypeID(),buffOwner.GetID()))
-
+
if curObj.GetGameObjType() == IPY_GameWorld.gotNPC and curObj.GetIsBoss() not in ChConfig.Def_SkillAttack_NPCIsBoss \
and SkillCommon.GetSkillBattleType(curSkill) == ChConfig.Def_BattleRelationType_CommNoBoss and SkillShell.IsNPCSkillResist(curObj):
# 释放后 对指定BOSS无效的技能
@@ -118,9 +110,9 @@
buffTime = curSkill.GetLastTime()
if not attacker:
return buffTime
- if curSkill.GetEffect(0).GetEffectID() == ChConfig.Def_Skill_Effect_Burn:
- # 灼烧的时间特殊处理
- buffTime = buffTime*(ChConfig.Def_MaxRateValue + PlayerControl.GetBurnTimePer(attacker))/ChConfig.Def_MaxRateValue
+ #if curSkill.GetEffect(0).GetEffectID() == ChConfig.Def_Skill_Effect_Burn:
+ # # 灼烧的时间特殊处理
+ # buffTime = buffTime*(ChConfig.Def_MaxRateValue + PlayerControl.GetBurnTimePer(attacker))/ChConfig.Def_MaxRateValue
buffTime += PassiveBuffEffMng.GetPassiveSkillValueByTriggerType(attacker, None, curSkill, ChConfig.TriggerType_BuffTime)
return buffTime
@@ -176,9 +168,6 @@
for i in range(len(plusValueList)):
plusValueList[i] = min(plusValueList[i], ChConfig.Def_UpperLimit_DWord)
- # 向跨服发送数据
- CrossPlayerData.SendMergeData_Buff(curObj, curSkillID, plusValueList)
-
# buff层级
layerMaxCnt = 0
layerCalc = 0
@@ -654,7 +643,6 @@
beforeHP = GameObj.GetHP(curObj)
index = 0
- isPlayerTJG = (curObj.GetGameObjType() == IPY_GameWorld.gotPlayer and PlayerTJG.GetIsTJG(curObj))
skillIDListInDelBuff = [] # buff消失中需要处理添加buff,外层处理避免错乱
@@ -669,12 +657,6 @@
#填表,持续时间为0的Buff为永久Buff
if not curSkill.GetLastTime() and not curBuffRemainTime:
index += 1
- continue
-
- if isPlayerTJG and curSkill.GetSkillTypeID() in ChConfig.TJGStateNotRefreshTimeBuff:
- curBuff.SetCalcStartTick( tick )
- index += 1
- #GameWorld.DebugLog("脱机挂状态下不刷新buff时间: skillTypeID=%s" % curSkill.GetSkillTypeID())
continue
remainTime = curBuffRemainTime - ( tick - curBuff.GetCalcStartTick() )
@@ -863,7 +845,7 @@
#异常错误
if not buffSkill:
- #GameWorld.Log("查找Buff异常 = %s "%(ChConfig.Def_SkillID_JoinExam) , curPlayer.GetPlayerID())
+ #GameWorld.Log("查找Buff异常", curPlayer.GetPlayerID())
return False
buffType = SkillCommon.GetBuffType(buffSkill)
@@ -905,7 +887,7 @@
#异常错误
if not buffSkill:
- #GameWorld.Log("查找Buff异常 = %s "%(ChConfig.Def_SkillID_JoinExam) , curPlayer.GetPlayerID())
+ #GameWorld.Log("查找Buff异常", curPlayer.GetPlayerID())
return False
buffType = SkillCommon.GetBuffType(buffSkill)
--
Gitblit v1.8.0