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); } }
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); } }