#!/usr/bin/python # -*- coding: GBK -*- # ##@package # # @todo: ʹÓ÷ǹ¥»÷À༼ÄܺóÔö¼ÓÓ¡¼ÇÊý, ¿ÉÔö¼ÓÔöÒæbuffÊýµÄÓ¡¼ÇÊý # # @author: Alee # @date 2019-4-26 ÏÂÎç08:20:09 # @version 1.0 # # @note: # #--------------------------------------------------------------------- import PlayerYinji def CheckCanHappen(attacker, defender, effect, curSkill): addCnt = effect.GetEffectValue(0) if effect.GetEffectValue(1): addCnt = min(attacker.GetBuffState().GetBuffCount(), effect.GetEffectValue(0)) if not addCnt: return False PlayerYinji.AddYinji(attacker, addCnt) return False