2683 子 天赋技能和新增双职业各两个技能 / 【后端】天赋技能 ----- 补齐第一版
| | |
| | | # 召唤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())
|
| | |
|
New file |
| | |
| | | #!/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
|
| | | |