Esempio n. 1
0
 private static void InitItem()
 {
     Bilgewater = new Items.Item(ItemId.Bilgewater_Cutlass, 550);
     BotRuinedKing = new Items.Item(ItemId.Blade_of_the_Ruined_King, 550);
     Youmuu = new Items.Item(ItemId.Youmuus_Ghostblade, 0);
     Tiamat = new Items.Item(ItemId.Tiamat_Melee_Only, 400);
     Hydra = new Items.Item(ItemId.Ravenous_Hydra_Melee_Only, 400);
     Titanic = new Items.Item(3748, 0);
 }
Esempio n. 2
0
        private static void InitSpells()
        {
            Q = new Spell(SpellSlot.Q);
            W = new Spell(SpellSlot.W);
            E = new Spell(SpellSlot.E, 1050);
            E.SetSkillshot(0.25f, 130, 1400, false, SkillshotType.SkillshotLine);
            R = new Spell(SpellSlot.R, 3000);
            R.SetSkillshot(0.25f, 160f, 2000f, false, SkillshotType.SkillshotLine);

            BOTRK = new Items.Item(3153, 550);
            Bilgewater = new Items.Item(3144, 550);
            Yomamas = new Items.Item(3142, 400);
            Mercurial = new Items.Item(3139, 22000);
            QSS = new Items.Item(3140, 22000);
        }
Esempio n. 3
0
 /// <summary>
 /// Called when an unit goes into stealth.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="Events.OnStealthEventArgs"/> instance containing the event data.</param>
 private void OnStealth(object sender, Events.OnStealthEventArgs e)
 {
     var pinkWard = new Items.Item(ItemId.Vision_Ward, 600);
     if (pinkWard.IsOwned() && pinkWard.IsReady)
     {
         var stealthUnit = e.Sender;
         if (stealthUnit.IsValidTarget() 
             && stealthUnit.ServerPosition.DistanceSquared(ObjectManager.Player.ServerPosition) < 1500f * 1500f
             && e.IsStealthed)
         {
             var extendedPosition = ObjectManager.Player.ServerPosition.Extend(stealthUnit.ServerPosition, 450f);
             pinkWard.Cast(extendedPosition);
         }
     }
 }