Ejemplo n.º 1
0
        public static float GetTotalDamage(Karthus instance, AIHeroClient target)
        {
            // Auto attack
            var damage = Player.Instance.GetAutoAttackDamage(target);

            // Q
            if (instance.SpellHandler.Q.IsReady())
            {
                damage += instance.SpellHandler.Q.GetRealDamage(target);
            }

            // E
            if (instance.SpellHandler.E.IsReady() && instance.SpellHandler.E.IsInRange(target))
            {
                damage += instance.SpellHandler.E.GetRealDamage(target);
            }

            // R
            if (instance.SpellHandler.R.IsReady())
            {
                damage += instance.SpellHandler.R.GetRealDamage(target);
            }

            return(damage);
        }
Ejemplo n.º 2
0
 private static void OnLoad()
 {
     if (ObjectManager.GetLocalPlayer().ChampionName == "Karthus")
     {
         Console.WriteLine("Karthus Loaded.");
         var Karthus = new Karthus();
     }
 }
Ejemplo n.º 3
0
        public UltimateAlerter(Karthus instance)
        {
            // Initialize properties
            Instance = instance;

            // Listen to required events
            Drawing.OnDraw += OnDraw;
        }
Ejemplo n.º 4
0
 public SpellHandler(Karthus instance, Spell.Skillshot q = null, Spell.Skillshot w = null, Spell.Active e = null, Spell.Active r = null)
 {
     // Initialize properties
     Instance = instance;
     Q        = q;
     W        = w;
     E        = e;
     R        = r;
 }
Ejemplo n.º 5
0
        private static void GameEvents_GameStart()
        {
            if (ObjectManager.GetLocalPlayer().ChampionName != "Karthus")
            {
                return;
            }

            var Karthus = new Karthus();
        }
Ejemplo n.º 6
0
 public ModeHandler(Karthus instance)
 {
     // Initialize properties
     Instance = instance;
     Modes    = new List <ModeBase>
     {
         new PermaActive(instance),
         new Combo(instance),
         new Harass(instance),
         new LaneClear(instance),
         new JungleFarming(instance)
     };
 }
Ejemplo n.º 7
0
 protected ModeBase(Karthus instance)
 {
     // Initialize properties
     Instance = instance;
 }