2683 子 天赋技能和新增双职业各两个技能 / 【后端】天赋技能 ----- 补齐第一版
1个文件已修改
1个文件已添加
25 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/ChNPC.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4063.py 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/ChNPC.py
@@ -94,6 +94,7 @@
    # 召唤NPC死亡触发被动技能
    owner = NPCCommon.GetSummonNPCOwner(IPY_GameWorld.gotPlayer, curNPC)
    if owner:
        owner.SetDict("summondie", curNPC.GetNPCID())
        PassiveBuffEffMng.OnPassiveSkillTrigger(owner, None, None, ChConfig.TriggerType_SummonDie,
                                                GameWorld.GetGameWorld().GetTick())
        
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4063.py
New file
@@ -0,0 +1,24 @@
#!/usr/bin/python
# -*- coding: GBK -*-
#
# @todo: 召唤兽死亡触发技能
#
# @author: Alee
# @date 2018-1-9 下午09:39:37
# @version 1.0
#
# @note:
#
#---------------------------------------------------------------------
import ChConfig
import GameWorld
import GameObj
import ChEquip
def CheckCanHappen(attacker, defender, effect, curSkill):
    if attacker.GetDictByKey("summondie") != effect.GetEffectValue(0):
        return False
    return True