From 40091aee962c818715fbe19444d4d4096fbb1de9 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 19 二月 2025 11:53:36 +0800
Subject: [PATCH] 8796 【越南】【英语】【BT】【砍树】修复在线奖励无A507封包函数bug;

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
index 5472f99..3cf86fd 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
@@ -1149,6 +1149,8 @@
 #  @remarks 函数详细说明.
 def CheckPlayerAttackDist(curPlayer, curTag, useSkill, preciseAtkDict=False):
     #攻击起点取缓存的坐标
+    if not curPlayer or not curTag:
+        return False
     atkStartPosX = curPlayer.GetAttackTargetPosX()
     atkStartPosY = curPlayer.GetAttackTargetPosY()
     

--
Gitblit v1.8.0