Example #1
0
        public static void Load()
        {
            Q  = new Spell.Skillshot(SpellSlot.Q, 275, SkillShotType.Circular, 250, 2200, 100);
            W  = new Spell.Active(SpellSlot.W, 250);
            E  = new Spell.Skillshot(SpellSlot.E, 310, SkillShotType.Linear);
            R  = new Spell.Active(SpellSlot.R);
            R2 = new Spell.Skillshot(SpellSlot.R, 900, SkillShotType.Cone, 250, 1600, 125);

            if (Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner1).Name == "SummonerFlash")
            {
                Flash = new Spell.Targeted(SpellSlot.Summoner1, 425);
            }
            else if (Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner2).Name == "SummonerFlash")
            {
                Flash = new Spell.Targeted(SpellSlot.Summoner2, 425);
            }
            var target = TargetSelector.GetTarget(Riven.E.Range + 200, DamageType.Physical);

            Hydra     = new Item((int)ItemId.Ravenous_Hydra, 300);
            Tiamat    = new Item((int)ItemId.Tiamat, 300);
            Youmu     = new Item((int)ItemId.Youmuus_Ghostblade, 0);
            Qss       = new Item((int)ItemId.Quicksilver_Sash, 0);
            Mercurial = new Item((int)ItemId.Mercurial_Scimitar, 0);

            ItemLogic.Init();
            DamageIndicator.Initialize(DamageTotal);
            Game.OnUpdate  += Game_OnUpdate;
            Game.OnWndProc += Game_OnWndProc;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
            Obj_AI_Base.OnPlayAnimation      += Reset;
            Obj_AI_Base.OnProcessSpellCast   += Obj_AI_Base_OnProcessSpellCast;
            Obj_AI_Base.OnSpellCast          += Obj_AI_Base_OnSpellCast;

            Obj_AI_Turret.OnBasicAttack += Obj_AI_Turret_OnBasicAttack2;
            Orbwalker.OnPostAttack      += Orbwalker_OnPostAttack;
            Drawing.OnDraw += Drawing_OnDraw;
        }