Пример #1
0
        public static bool CastQ(Target target)
        {
            if (target == null || !target.Unit.IsValid || !Katarina.Instance.Q.IsReady() || !target.Unit.IsValidTarget(Katarina.Instance.Q.Range))
                return false;

            Katarina.Instance.Q.CastOnUnit(target.Unit, true);
            return true;
        }
Пример #2
0
        public static bool CastIgnite(Target target)
        {
            if (target == null || !target.Unit.IsValid || !target.Unit.IsValidTarget(600))
                return false;

            var ignite = ObjectManager.Player.SummonerSpellbook.Spells.FirstOrDefault(x => x.Name == "summonerdot");

            if (ignite == null)
                return false;

            return ObjectManager.Player.SummonerSpellbook.CastSpell(ignite.Slot, target.Unit);
        }
Пример #3
0
 public static double GetLiandrysDamage(Target target)
 {
     return DamageLib.CalcMagicDmg(0.06 * target.Unit.MaxHealth, target.Unit);
 }
Пример #4
0
        public static bool CastW(Target target)
        {
            if (target == null || !target.Unit.IsValid || !Katarina.Instance.W.IsReady() || !target.Unit.IsValidTarget(Katarina.Instance.W.Range))
                return false;

            return Katarina.Instance.W.Cast();
        }