From 545986a8fdde345b28cf3004be84c6cfe79a3dc1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 19 四月 2019 11:29:12 +0800
Subject: [PATCH] 6459 【后端】【2.0】缥缈仙域开发单(跨服分区逻辑优化,支持跨服妖王分区状态同步)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 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 d70b3fb..fc48a11 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py
@@ -22,7 +22,6 @@
import PlayerControl
import NPCCommon
import ChConfig
-import ChEquip
import SkillCommon
import AttackLogic
import ItemControler
@@ -36,7 +35,6 @@
import OperControlManager
import DataRecordPack
import ChItem
-import ReadChConfig
import GameObj
import ChPyNetSendPack
import ChNetSendPack
@@ -79,7 +77,7 @@
# global hurtTypeIndance
# hurtTypeIndance = indance
#
-### 获得本次攻击是否是致命一击
+### 获得本次攻击是否是暴击
## @param 无参数
## @return True or False
## @remarks 函数详细说明.
@@ -916,12 +914,19 @@
if attacker.GetGameObjType() != IPY_GameWorld.gotPlayer:
return None
- useSkillTagID = attacker.GetUseSkillTagID()
- useSkillTagType = attacker.GetUseSkillTagType()
-
- curTag = GameWorld.GetObj(useSkillTagID, useSkillTagType)
+ curTag = None
+ if attacker.GetAttackMode() == IPY_GameWorld.amContest:
+ # 单一目标锁定模式
+ curTag = GameWorld.GetObj(attacker.SetDict(ChConfig.Def_PlayerKey_SelectObjID),
+ attacker.SetDict(ChConfig.Def_PlayerKey_SelectObjType))
+
if not curTag:
- return None
+ useSkillTagID = attacker.GetUseSkillTagID()
+ useSkillTagType = attacker.GetUseSkillTagType()
+
+ curTag = GameWorld.GetObj(useSkillTagID, useSkillTagType)
+ if not curTag:
+ return None
if SkillShell.GetSkillAffectTag(curSkill) == ChConfig.Def_UseSkillTag_CanAttackNPC:
if NPCCommon.GetNpcObjOwnerIsPlayer(curTag):
--
Gitblit v1.8.0