Beispiel #1
0
 private static void Game_OnUpdate(EventArgs args)
 {
     if (Util.MyHero.IsDead)
     {
         return;
     }
     KillSteal.Execute();
     if (IsCombo)
     {
         Combo.Execute();
     }
     else if (IsHarass)
     {
         Harass.Execute();
     }
     else if (IsClear)
     {
         Clear.Execute();
     }
     else if (IsLastHit)
     {
         LastHit.Execute();
     }
     if (IsFlee)
     {
         Flee.Execute();
     }
 }
Beispiel #2
0
 private static void Game_OnUpdate(EventArgs args)
 {
     if (Util.MyHero.IsDead)
     {
         return;
     }
     KillSteal.Execute();
     if (Orbwalker.ForcedTarget != null && !Orbwalker.ForcedTarget.IsInFishBonesRange())
     {
         Orbwalker.ForcedTarget = null;
     }
     CanUseQ = Util.MyHero.Mana >= SpellSlot.W.Mana() + (SpellSlot.E.IsLearned() ? SpellSlot.E.Mana() : 0f) + (SpellSlot.R.IsLearned() ? SpellSlot.R.Mana() : 0f);
     CanUseW = Util.MyHero.Mana >= (SpellSlot.W.Mana() + (SpellSlot.R.IsLearned() ? SpellSlot.R.Mana() : 0f) + 20);
     CanUseE = Util.MyHero.Mana >= SpellSlot.E.Mana() + (SpellSlot.R.IsLearned() ? SpellSlot.R.Mana() : 0f);
     if (IsCombo)
     {
         Combo.Execute();
     }
     else if (IsHarass)
     {
         Harass.Execute();
     }
     else if (IsClear)
     {
         Clear.Execute();
     }
     else if (IsLastHit)
     {
         LastHit.Execute();
     }
     if (IsFlee)
     {
         Flee.Execute();
     }
 }