Ejemplo n.º 1
0
        internal static void OnMatchStateUpdate(MatchStateUpdate args)
        {
            if (Utilities.Hero == null)
            {
                return;
            }

            if (args.OldMatchState == MatchState.BattleritePicking || args.NewMatchState == MatchState.PreRound)
            {
                BattleriteManager.Update();
            }
        }
Ejemplo n.º 2
0
        private static void OnMatchStart(EventArgs args)
        {
            if (Utilities.Hero == null || !Utilities.Hero.CharName.Equals(Utilities.HeroName))
            {
                return;
            }

            SubscribeEvents();

            if (Game.CurrentMatchState == MatchState.InRound)
            {
                BattleriteManager.Update();
            }

            _didInit = true;
        }