示例#1
0
 public override void DoAction()
 {
     try
     {
         CaptureTheBaseMode handler = (CaptureTheBaseMode)Bot.Game.GameModeHandler;
         Base b = handler.GetBaseByID(baseEventId);
         b.InflictDamage(damageAmount, isDestroyed);
     }
     catch (Exception ex)
     {
         Console.Error.WriteLine(ex);
     }
 }
示例#2
0
        public override void DoAction()
        {
            try
            {
                CaptureTheBaseMode handler = (CaptureTheBaseMode)Bot.Game.GameModeHandler;
                Base b = handler.GetBaseByID(baseEventId);
                b.Health = Base.DEFAULT_BASE_HEALTH;
                b.Team   = newBaseColor;

                handler.DetectAttackableBases();
            }
            catch (Exception ex)
            {
                Console.Error.WriteLine(ex);
            }
        }