#!/usr/bin/python # -*- coding: GBK -*- # ##@package # # @todo: µ±³ÖÐøbuffÉ˺¦µÚX´Îʱ´¥·¢¼¼ÄÜ # µ±¼³Áé¶ÔÄ¿±êÔì³É3´ÎÉ˺¦Ê±£¬¿É½µµÍÄ¿±ê20%µÄ·ÀÓù # @author: Alee # @date 2019-3-15 ÏÂÎç03:26:32 # @version 1.0 # # @note: # #--------------------------------------------------------------------- import ChConfig def CheckCanHappen(attacker, defender, effect, curSkill): if defender.GetDictByKey(ChConfig.Def_PlayerKey_BuffHurtCnt) != effect.GetEffectValue(0): return False return True