From ed212e33cd50eca6ff3b7d5f4cac7de975a1e0b7 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 17 七月 2019 15:20:59 +0800
Subject: [PATCH] 8017 【开发】【主干】玩家退出副本或自定义场景时,如果非死亡状态则血量恢复满血状态

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_1304.py |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_1304.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_1304.py
index 0234a23..c90c74b 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_1304.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_1304.py
@@ -15,7 +15,7 @@
 
 import GameWorld
 import ChConfig
-
+import BaseAttack
 
 
 ## buff线性增加属性
@@ -26,7 +26,7 @@
 def OnCalcBuffEx(defender, curEffect, calcDict, curBuff):
     attrType = curEffect.GetEffectValue(0)
     
-    calcDict[attrType] = calcDict.get(attrType, 0) + curEffect.GetEffectValue(1)*curBuff.GetValue(0)
+    calcDict[attrType] = calcDict.get(attrType, 0) + curEffect.GetEffectValue(1)*curBuff.GetValue()
     return
 
 
@@ -40,5 +40,8 @@
 
 
 def CalcBuffValue(attacker, defender, curSkill, changeBuffValueDict):
-    return [GameWorld.GetGameWorld().GetTick()]
+    # 被动1304赋值
+    cnt = attacker.GetDictByKey("1304HitCnt")
+    attacker.SetDict("1304HitCnt", 0)
+    return [cnt]
 

--
Gitblit v1.8.0