#!/usr/bin/python # -*- coding: GBK -*- #------------------------------------------------------------------------------- # ##@package Skill.PassiveTrigger.PassiveEff_6004 # # @todo:Ôö¼Ó±¾´Î¼¼ÄÜÍò·Ö±È # @author hxp # @date 2025-09-17 # @version 1.0 # # ÏêϸÃèÊö: Ôö¼Ó±¾´Î¼¼ÄÜÍò·Ö±È # #------------------------------------------------------------------------------- #"""Version = 2025-09-17 17:30""" #------------------------------------------------------------------------------- import BattleObj #import GameWorld def GetHappenValue(attacker, defender, curEffect, effSkill, **skillkwargs): checkInStateList = curEffect.GetEffectValue(1) if checkInStateList: checkMainSkillTag = curEffect.GetEffectValue(2) if checkMainSkillTag: inState = False objMgr = BattleObj.GetBatObjMgr() for tagID in attacker.GetMainTagIDList(): tagObj = objMgr.getBatObj(tagID) if tagObj.CheckInState(checkInStateList): inState = True #GameWorld.DebugLog("Ö÷¼¼ÄܵÄÄ¿±êÔÚ״̬ÖÐ! tagID=%s,%s" % (tagID, checkInStateList)) break if not inState: #GameWorld.DebugLog("Ö÷¼¼ÄܵÄÄ¿±ê¶¼²»ÔÚ״̬ÖÐ! tagID=%s,%s" % (attacker.GetMainTagIDList(), checkInStateList)) return else: if not defender.CheckInState(checkInStateList): return return curEffect.GetEffectValue(0)