#!/usr/bin/python # -*- coding: GBK -*- # ##@package # # @todo: ÓÐÖ¸¶¨ÕÙ»½ÊÞÏÂNPCÒþÉíÎ޵гÖÐøÐÔBUFF # # @author: Alee # @date 2018-4-6 ÏÂÎç02:06:58 # @version 1.0 # # @note: # #--------------------------------------------------------------------- #µ¼Èë import SkillCommon import GameWorld import ChConfig import GameObj #--------------------------------------------------------------------- #È«¾Ö±äÁ¿ #--------------------------------------------------------------------- #Âß¼­ÊµÏÖ ## ³ÖÐøÐÔBuff´¦Àí # @param defender ³ÐÊÜÕß # @param curBuff µ±Ç°Buff # @param curEffect BuffЧ¹û # @param tick µ±Ç°Ê±¼ä # @return None # @remarks ³ÖÐøÐÔBuff´¦Àí def ProcessBuff(defender, curBuff, curEffect, processBuffTick, tick): if not SkillCommon.GetSummonCountByNPCID(defender, curEffect.GetEffectValue(0)): defender.SetCanAttack(True) curBuff.SetRemainTime(1) return else: defender.SetAttackTick(tick) if defender.GetCanAttack(): defender.SetCanAttack(False) return # Ïûʧǰ def OnBuffDisappear(defender, curSkill, curBuff, curEffect, tick): defender.SetCanAttack(True) return # Ïûʧǰ def OnBuffDisappearEx(defender, curSkill, curBuff, curEffect, tick): defender.SetCanAttack(True) return