Example #1
0
 override public void Reset()
 {
     redBuff = new RedBuff();
     Cleave  = (c) => false;
     CreepEx = (cs) => null;
     Creep   = (cs) => {
         var target = CreepEx(cs); if (target != null)
         {
             return(target);
         }
         var cleave = Cleave(cs);
         var red    = s.myHero.Buff(redBuff.own);
         foreach (var c in cs.Creeps())
         {
             if (target == null)
             {
                 target = c;
             }
             else if (red && (target.Buff(redBuff.apply) || c.Buff(redBuff.apply)))
             {
                 if (target.Buff(redBuff.apply) && !c.Buff(redBuff.apply))
                 {
                     target = c;
                 }
             }
             else if (cleave && [email protected] > [email protected])
             {
                 target = c;
             }
             else if (!cleave && [email protected] < [email protected])
             {
                 target = c;
             }
             else if ([email protected] == [email protected] && [email protected] > [email protected])
             {
                 target = c;
             }
         }
         return(target);
     };
 }
Example #2
0
        public override void Use(ArgumentsContainer arguments)
        {
            ArgumentsInfo.CheckArgument(arguments);

            RedBuff buff = new RedBuff(( Stock )arguments.Arguments.Single( ), Duration);
        }