From cf12ea809cd7c5b063ae284afc76e175df83d62d Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 21 一月 2025 18:56:58 +0800
Subject: [PATCH] 10263 【越南】【英文】【BT】【砍树】后端支持NPC仿真实玩家战斗和快速战斗(优化不创建战斗PK时玩家自身镜像数据同步;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py
index 1aee811..3921bcd 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py
@@ -1017,6 +1017,9 @@
     if skillMatrix == None:
         #作用范围 作用矩阵
         attackDis = curSkill.GetAtkRadius()
+        if not attackDis:
+            return resultList
+        
         skillMatrix = ChConfig.MatrixDict.get(attackDis, None)
         if skillMatrix == None and attackDis not in [Def_SearchMap_Player, Def_SearchMap_NPC]:
             GameWorld.ErrLog("CheckAreaObj skillId=%s, attakDis=%s not in matrixDict=%s" 

--
Gitblit v1.8.0