1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package Skill.PassiveTrigger.PassiveEff_5012
#
# @todo:¸ÅÂʽøÐÐ×·»÷
# @author hxp
# @date 2025-09-18
# @version 1.0
#
# ÏêϸÃèÊö: ¸ÅÂʽøÐÐ×·»÷
#
#-------------------------------------------------------------------------------
#"""Version = 2025-09-18 10:30"""
#-------------------------------------------------------------------------------
 
import TurnSkill
import IpyGameDataPY
import GameWorld
import ChConfig
 
def DoSkillEffectLogic(turnFight, batObj, tagObj, effSkill, curEffect, connSkill):
    rate = curEffect.GetEffectValue(0)
    if not GameWorld.CanHappen(rate):
        #GameWorld.DebugLog("¸ÅÂʽøÐÐ×·»÷²»´¥·¢!")
        return
    skillID = curEffect.GetEffectValue(1) # ¼¼ÄÜID£¬Îª0ʱÊͷű¾¼¼ÄÜ
    if not skillID:
        passiveSkill = effSkill
    else:
        passiveSkill = IpyGameDataPY.GetIpyGameData("Skill", skillID)
    if not passiveSkill:
        return
    return TurnSkill.OnUseSkill(turnFight, batObj, passiveSkill, batType=ChConfig.TurnBattleType_Pursue, bySkill=connSkill)
 
def DoBuffEffectLogic(turnFight, batObj, tagObj, effBuff, curEffect, connSkill):
    effSkill = effBuff.GetSkillData().GetIpyData()
    return DoSkillEffectLogic(turnFight, batObj, tagObj, effSkill, curEffect, connSkill)