Esempio n. 1
0
        public Riven()
        {
            me = ObjectManager.Player;
            if (me.ChampionName != "Riven")
            {
                return;
            }

            RivenMenu.Init();
            Spells.Init();

            Obj_AI_Base.OnSpellCast     += OnSpellCast;
            Dash.OnDash                 += DashOnOnDash;
            Obj_AI_Base.OnPlayAnimation += ObjAiBaseOnOnPlayAnimation;
            Game.OnUpdate               += GameOnOnUpdate;
            Game.OnWndProc              += Game_OnWndProc;
            Drawing.OnDraw              += DrawingOnOnDraw;

            Interrupter.OnInterruptableSpell += InterrupterOnOnInterruptableSpell;
            Gapcloser.OnGapcloser            += GapcloserOnOnGapcloser;

            if (Game.MapId != GameMapId.SummonersRift)
            {
                WallJumpData.WallJumpSpots.Clear();
                if (Game.MapId == GameMapId.HowlingAbyss)
                {
                    foreach (var aramSpot in WallJumpData.WallJumpSpotsAram)
                    {
                        WallJumpData.WallJumpSpots.Add(aramSpot.Key, aramSpot.Value);
                    }
                }

                if (Game.MapId == GameMapId.TwistedTreeline)
                {
                    foreach (var twistedTreeLineSpot in WallJumpData.WallJumpSpotsTwistedTreeline)
                    {
                        WallJumpData.WallJumpSpots.Add(twistedTreeLineSpot.Key, twistedTreeLineSpot.Value);
                    }
                }
            }
            Logger.Debug("====================================================");
        }