From 2aefdb232d9d635d82dc64516e66fd79b582c9bb Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期六, 25 五月 2019 11:31:17 +0800
Subject: [PATCH] 6501 增加宝石任务接口
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4503.py | 31 +++++++++++++++----------------
1 files changed, 15 insertions(+), 16 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4503.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4503.py
index 60eddc4..7a5f7b6 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4503.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4503.py
@@ -1,33 +1,32 @@
#!/usr/bin/python
# -*- coding: GBK -*-
#
-# @todo: buff中攻击目标处于XX状态提高增加伤害
+##@package
+#
+# @todo: buff中攻击处于xx状态目标触发技能
#
# @author: Alee
-# @date 2018-1-30 下午05:11:45
+# @date 2019-5-7 下午09:17:25
# @version 1.0
#
# @note:
#
#---------------------------------------------------------------------
-import ChConfig
import GameWorld
import GameObj
def CheckCanHappen(attacker, defender, passiveEffect, skillID, **skillkwargs):
- if not defender:
- return False
-
- if not passiveEffect.GetEffectValue(1):
- # 不配置状态的情况
- return True
-
- if GameObj.GetPyPlayerState(defender, passiveEffect.GetEffectValue(1)):
- #GameWorld.DebugLog("状态触发----%s"%effect.GetEffectValue(1))
- return True
- return False
+ if passiveEffect.GetEffectValue(0):
+ if not GameObj.GetPyPlayerState(defender, passiveEffect.GetEffectValue(0)):
+ #GameWorld.DebugLog("状态触发----%s"%effect.GetEffectValue(1))
+ return False
+ return True
-def GetValue(attacker, defender, passiveEffect):
- return passiveEffect.GetEffectValue(0)
+def GetSkillData(passiveEffect):
+ skillID = passiveEffect.GetEffectValue(1)
+ return GameWorld.GetGameData().GetSkillBySkillID(skillID)
+
+
+
--
Gitblit v1.8.0