Exemplo n.º 1
0
        private static void CastRandomUlt(RandomUltUnit target, Vector3 pos)
        {
            if (!Player.Instance.Spellbook.GetSpell(SpellSlot.R).IsReady)
            {
                return;
            }

            if (GetRandomUltSpellDamage(RandomUltSpells.Find(x => x.Name == Player.Instance.ChampionName), target.Unit) &&
                UltTime(pos) < target.RecallData.GetRecallTime())
            {
                Player.Instance.Spellbook.CastSpell(SpellSlot.R, pos);
            }
        }
Exemplo n.º 2
0
        private void CastRandomUlt(RandomUltUnit target, Vector3 pos)
        {
            if (!Player.Instance.Spellbook.GetSpell(SpellSlot.R).IsReady)
            {
                return;
            }

            if (GetRandomUltSpellDamage(RandomUltSpells.Find(x => x.Name == Player.Instance.ChampionName), target.Unit)
                && UltTime(pos) < target.RecallData.GetRecallTime() && Value.Use("randomult.use"))
            {
                Player.Instance.Spellbook.CastSpell(SpellSlot.R, pos);
            }
        }
Exemplo n.º 3
0
 private static Vector2 PredictPos(RandomUltUnit target, float distance)
 {
     var recallTime = (target.RecallData.Started - target.LastSeen);
     var line = target.Unit.Position.Extend(target.PredictedPos, distance);
     if (target.Unit.Position.Distance(target.PredictedPos) < distance
         && ((recallTime < 2000
              || target.Unit.Position.Distance(target.PredictedPos) > target.Unit.Position.Distance(line) * 0.70f)))
     {
         line = target.PredictedPos.To2D();
     }
     return line;
 }
Exemplo n.º 4
0
 private static void CastRandomUlt(RandomUltUnit target, Vector3 pos)
 {
     var ult = Player.Instance.Spellbook.GetSpell(SpellSlot.R);
     if (ult.IsReady)
     {
         if (GetRandomUltSpellDamage(
             RandomUltSpells.Find(x => x.Name == Player.Instance.ChampionName),
             target.Unit) && UltTime(pos) < target.RecallData.GetRecallTime())
         {
             Player.Instance.Spellbook.CastSpell(SpellSlot.R, pos);
         }
     }
 }