From 5592d30dc6790494b8fc03fd03510d5beece962a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 26 十一月 2025 15:41:55 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(吕布、张角技能;6014效果增加可验证是否首次释放技能;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 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 814a105..a6ac5ed 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
@@ -576,7 +576,7 @@
olPlayer = PlayerOnline.GetOnlinePlayer(curPlayer)
lineup = olPlayer.GetLineup(lineupID)
if lineup.IsEmpty():
- GameWorld.DebugLog("玩家没有目标阵容默认取主阵容! lineupID=%s" % lineupID)
+ GameWorld.DebugLog("玩家没有目标阵容默认取主阵容! lineupID=%s" % lineupID, curPlayer.GetPlayerID())
lineup = olPlayer.GetLineup(ShareDefine.Lineup_Main)
return lineup
@@ -1143,10 +1143,12 @@
tagViewCache = PlayerViewCache.FindViewCache(tagPlayerID)
if not tagViewCache:
GameWorld.DebugLog("目标玩家没有缓存数据! tagPlayerID=%s" % tagPlayerID, playerID)
- return {}
+ PlayerControl.NotifyCode(curPlayer, "TagNoViewCache")
+ return
defLineupInfo = GetCacheLineupInfo(tagViewCache, defLineupID)
if not defLineupInfo:
GameWorld.DebugLog("目标玩家没有该阵容数据! tagPlayerID=%s,defLineupID=%s" % (tagPlayerID, defLineupID), playerID)
+ PlayerControl.NotifyCode(curPlayer, "TagNoLineup")
return
turnMax = GetTurnMax(mapID)
@@ -1255,15 +1257,13 @@
def __doSetFightPoint(curPlayer, fightPoint):
## 设置消耗倍值
GameWorld.DebugLog("设置战锤消耗倍值: %s" % fightPoint)
- if fightPoint == 1:
- pass
- elif fightPoint == 2:
- # 条件验证
- pass
- elif fightPoint == 3:
- # 条件验证
- pass
- else:
+ needTreeLVList = IpyGameDataPY.GetFuncEvalCfg("AutoGuaji", 1)
+ if fightPoint < 1 or fightPoint > len(needTreeLVList):
+ return
+ needTreeLV = needTreeLVList[fightPoint - 1]
+ treeLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TreeLV)
+ if treeLV < needTreeLV:
+ GameWorld.DebugLog("祝福树等级不足: treeLV=%s < %s" % (treeLV, needTreeLV))
return
curPlayer.SetFightPoint(fightPoint)
return
--
Gitblit v1.8.0