ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4517.py
@@ -15,8 +15,9 @@
import GameWorld
import SkillCommon
import BuffSkill
import IPY_GameWorld
def CheckCanHappen(attacker, defender, effect, tagSkill):
def CheckCanHappen(attacker, defender, effect, tagSkill, **skillkwargs):
    debuffState = effect.GetEffectValue(1)
    if debuffState and debuffState != SkillCommon.GetBuffStateType(tagSkill):
        return False
@@ -48,6 +49,9 @@
        return
    
    BuffSkill.SetBuffLayer(attacker, findBuff, findBuff.GetLayer()-1, skillTypeID=findSkill.GetSkillTypeID())
    if defender.GetGameObjType() != IPY_GameWorld.gotPlayer:
        # 不反弹NPC
        return
    # 给对方加buff
    BuffSkill.DoAddBuff(defender, SkillCommon.GetBuffType(tagSkill), tagSkill,