Exemplo n.º 1
0
 private static void Game_OnGameUpdate(EventArgs args)
 {
     Buffmanager.ROn = Buffmanager.RIsOn();
     BuffInstance[] buffs = ObjectManager.Player.Buffs;
     BuffInstance[] array = buffs;
     for (int i = 0; i < array.Length; i++)
     {
         BuffInstance buffInstance = array[i];
         if (buffInstance.Name == "RivenTriCleave")
         {
             Buffmanager.qStacks = buffInstance.Count;
         }
         if (buffInstance.Name == "rivenpassiveaaboost")
         {
             Buffmanager.aaStacks = buffInstance.Count;
         }
         if (buffInstance.Name == "rivenwindslashready")
         {
             Buffmanager.windSlashReady = true;
         }
     }
     if (!Buffmanager.hasQStacks())
     {
         Buffmanager.qStacks = 0;
     }
     if (!Buffmanager.hasWindSlash())
     {
         Buffmanager.windSlashReady = false;
     }
 }
Exemplo n.º 2
0
        private static double GetComboDamage(Obj_AI_Base target)
        {
            double num = 0.0;

            if (Q.IsReady() && !Buffmanager.hasQStacks())
            {
                num += ObjectManager.Player.GetSpellDamage(target, SpellSlot.Q);
            }
            if (W.IsReady())
            {
                num += ObjectManager.Player.GetSpellDamage(target, SpellSlot.W);
            }
            return(num + ObjectManager.Player.GetAutoAttackDamage(target) * 4.0);
        }
Exemplo n.º 3
0
        private static double GetNoAAComboDamage(Obj_AI_Base target)
        {
            double num = 0.0;

            if (Q.IsReady() && !Buffmanager.hasQStacks())
            {
                num += ObjectManager.Player.GetSpellDamage(target, SpellSlot.Q);
            }
            if (W.IsReady())
            {
                num += ObjectManager.Player.GetSpellDamage(target, SpellSlot.W);
            }
            if (R.IsReady() && !Buffmanager.windSlashReady)
            {
                num += ObjectManager.Player.GetSpellDamage(target, SpellSlot.R);
            }
            return(num);
        }