From d7203ff6c31fdb3518b98f773046571eaf45f354 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 21 一月 2025 14:15:19 +0800
Subject: [PATCH] 10263 【越南】【英文】【BT】【砍树】后端支持NPC仿真实玩家战斗和快速战斗(快速战斗后退出副本优化buff通知)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py
index 5f12948..b76c6a0 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py
@@ -168,6 +168,7 @@
PlayerControl.SetPlayerSightLevel(curPlayer, self.battleID) # 视野层级默认为战场ID,每场战斗的玩家独立视野
PlayerControl.SetSight(curPlayer, ChConfig.Def_PlayerSight_Default * 3)
GameObj.SetHPFull(curPlayer) # 回满血
+ PlayerControl.SetProDef(curPlayer, PlayerControl.GetMaxProDef(curPlayer))
SkillCommon.ResetAllSkillCD(curPlayer) # 重置技能CD
return
@@ -234,7 +235,8 @@
return
ownerPlayerID = battle.playerID
isSysbg = battle.isSysbg
- GameWorld.DebugLog("清除镜像战斗: battleID=%s,ownerPlayerID=%s,isSysbg=%s" % (isSysbg, ownerPlayerID, isSysbg), battleID)
+ isQuick = battle.isQuick
+ GameWorld.DebugLog("清除镜像战斗: battleID=%s,ownerPlayerID=%s,isSysbg=%s,isQuick=%s" % (isSysbg, ownerPlayerID, isSysbg, isQuick), battleID)
playerMgr = GameWorld.GetPlayerManager()
tick = GameWorld.GetGameWorld().GetTick()
@@ -256,7 +258,12 @@
curPlayer.SetFaction(info.get("Faction", 0))
PlayerControl.SetPlayerSightLevel(curPlayer, info.get("SightLevel", 0))
PlayerControl.SetSight(curPlayer, ChConfig.Def_PlayerSight_Default)
+
+ if not isQuick:
+ continue
+
GameObj.SetHPFull(curPlayer) # 回满血
+ PlayerControl.SetProDef(curPlayer, PlayerControl.GetMaxProDef(curPlayer))
SkillCommon.ResetAllSkillCD(curPlayer) # 重置技能CD
curPlayer.SetAttackTick(tick)
ChPlayer.__Sync_ClientBuff(curPlayer)
--
Gitblit v1.8.0