From 7ae9db7a15248cdc6dff8970b55b2efb424d8b5a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 11 五月 2019 15:32:34 +0800
Subject: [PATCH] 6747 【后端】【2.0】灵根调整
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/Player_Attack_SummonNPC.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/Player_Attack_SummonNPC.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/Player_Attack_SummonNPC.py
index 3c06144..e58b91c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/Player_Attack_SummonNPC.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/Player_Attack_SummonNPC.py
@@ -70,6 +70,12 @@
#怪物的召唤兽,不考虑攻击模式问题
return ChConfig.Type_Relation_Enemy , ChConfig.Def_PASysMessage_None
+ #私有木桩只能自己打自己的
+ if curTagSummonNPC.GetType() in [ChConfig.ntPriWoodPilePVE, ChConfig.ntPriWoodPilePVP]:
+ if not GameWorld.IsSameObj(curPlayer, curTagPlayer):
+ return ChConfig.Type_Relation_Friend , ChConfig.Def_PASysMessage_None
+ return ChConfig.Type_Relation_Enemy , ChConfig.Def_PASysMessage_None
+
#自己的召唤兽,不能攻击
if GameWorld.IsSameObj(curPlayer, curTagPlayer) :
return ChConfig.Type_Relation_Friend , ChConfig.Def_PASysMessage_None
@@ -94,7 +100,6 @@
# @return hurtType : HurtType 伤害结构体类
# @remarks 攻击
def DoAttack(curPlayer, curTagSummon, skill, skillValue, skillPercent, skillHurtList, tick):
- #finalHurtPer = SkillCommon.GetSkillFinalHurtPer(curPlayer, curTagSummon, skill, tick)
#攻击前血量
curTagSummonBeHP = GameObj.GetHP(curTagSummon)
--
Gitblit v1.8.0