Esempio n. 1
0
        public override IBuff Clone(params int[] buffId)
        {
            var buff = new FootballBlurBuff(this._skill, (EnumBlurType)buffId[0], this.BlurCode);

            buff.CopyValue(this);
            return(buff);
        }
Esempio n. 2
0
        protected override IBuff InnerCreateBuff(ISkill srcSkill, ISkillPlayer target, short last, int rate)
        {
            if (last > 0)
            {
                last += srcSkill.Context.MatchRound;
            }
            IBuff buff = null;

            if (this.BuffId[0] == (int)EnumBlurType.BanMan)
            {
                buff = new FootballDisableBuff(srcSkill, (EnumBlurBuffCode)this.BlurCode);
            }
            else
            {
                buff = new FootballBlurBuff(srcSkill, (EnumBlurType)this.BuffId[0], (EnumBlurBuffCode)this.BlurCode);
            }
            buff.Rate    = rate;
            buff.TimeEnd = last;
            buff.Times   = this.Repeat;
            return(buff);
        }