hzr
2025-04-21 2d9d117228fd281aeeb0f3c173f538744f8dffd7
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 -*-
#
# @todo: Ôö¼Ó¾ø¼¼¶ÔС¹ÖºÍ¾«Ó¢µÄÉ˺¦¼Ó³É
#
# @author: Alee
# @date 2018-1-9 ÏÂÎç09:39:37
# @version 1.0
#
# @note: 
#
#---------------------------------------------------------------------
 
import ChConfig
import GameWorld
import IPY_GameWorld
import IpyGameDataPY
 
def CheckCanHappen(attacker, defender, effect, curSkill):
    if not defender:
        return False
    
    if defender.GetGameObjType() != IPY_GameWorld.gotNPC:
        return False
    
    if defender.GetIsBoss() > ChConfig.Def_NPCType_Ogre_Super:
        return False
    
    if GameWorld.GetMap().GetMapFBType() != IPY_GameWorld.fbtNull and \
    GameWorld.GetMap().GetMapID() not in IpyGameDataPY.GetFuncEvalCfg('SkillXPAddByFB', 1):
        return False
    return True
    
 
def GetValue(attacker, defender, effect):
    return effect.GetEffectValue(0)