Example #1
0
        public static float GetComboDamage(Obj_AI_Hero unit, int maxStacks)
        {
            var d = 2 * Player.GetAutoAttackDamage(unit);

            if (ItemManager.RavenousHydra.IsValidAndReady() || ItemManager.TitanicHydra.IsValidAndReady())
            {
                d += Player.GetItemDamage(unit, Damage.DamageItems.Hydra);
            }

            if (ItemManager.Tiamat.IsValidAndReady())
            {
                d += Player.GetItemDamage(unit, Damage.DamageItems.Tiamat);
            }

            if (ItemManager.Botrk.IsValidAndReady())
            {
                d += Player.GetItemDamage(unit, Damage.DamageItems.Botrk);
            }

            if (ItemManager.Cutlass.IsValidAndReady())
            {
                d += Player.GetItemDamage(unit, Damage.DamageItems.Bilgewater);
            }

            if (ItemManager.Youmuus.IsValidAndReady())
            {
                d += Player.GetAutoAttackDamage(unit, true) * 2;
            }

            if (Ignite != null && Ignite.IsReady())
            {
                d += Player.GetSummonerSpellDamage(unit, Damage.SummonerSpell.Ignite);
            }

            if (Q.IsReady())
            {
                d += Player.GetSpellDamage(unit, SpellSlot.Q);
            }

            if (E.IsReady())
            {
                d += 2 * Player.GetAutoAttackDamage(unit);
            }

            if (maxStacks == 0)
            {
                if (R.IsReady())
                {
                    d += unit.GetPassiveDamage(4);
                }
                else
                {
                    d += unit.GetPassiveDamage();
                }
            }
            else
            {
                d += unit.GetPassiveDamage(maxStacks);
            }

            return (float) d;
        }
Example #2
0
        public static float GetComboDamage(Obj_AI_Hero unit, int maxStacks)
        {
            var d = 2 * Player.GetAutoAttackDamage(unit);

            var hydra = ItemData.Ravenous_Hydra_Melee_Only.GetItem();
            if (hydra != null && hydra.IsReady())
            {
                d += Player.GetItemDamage(unit, Damage.DamageItems.Hydra);
            }

            const ItemId titanic = (ItemId) 3748;
            var slot = Player.InventoryItems.FirstOrDefault(i => i.Id.Equals(titanic));

            if (slot != null && Player.Spellbook.GetSpell(slot.SpellSlot).IsReady())
            {
                d += Player.GetItemDamage(unit, Damage.DamageItems.Hydra);
            }

            var tiamat = ItemData.Tiamat_Melee_Only.GetItem();
            if (tiamat != null && tiamat.IsReady())
            {
                d += Player.GetItemDamage(unit, Damage.DamageItems.Tiamat);
            }

            var cutlass = ItemData.Bilgewater_Cutlass.GetItem();
            if (cutlass != null && cutlass.IsReady())
            {
                d += Player.GetItemDamage(unit, Damage.DamageItems.Bilgewater);
            }

            var botrk = ItemData.Blade_of_the_Ruined_King.GetItem();
            if (botrk != null && botrk.IsReady())
            {
                d += Player.GetItemDamage(unit, Damage.DamageItems.Botrk);
            }

            if (Ignite != null && Ignite.IsReady())
            {
                d += Player.GetSummonerSpellDamage(unit, Damage.SummonerSpell.Ignite);
            }

            if (Q.IsReady())
            {
                d += Player.GetSpellDamage(unit, SpellSlot.Q);
            }

            if (E.IsReady())
            {
                d += 2 * Player.GetAutoAttackDamage(unit);
            }

            if (maxStacks == 0)
            {
                if (R.IsReady())
                {
                    d += unit.GetPassiveDamage(4);
                }
                else
                {
                    d += unit.GetPassiveDamage();
                }
            }
            else
            {
                d += unit.GetPassiveDamage(maxStacks);
            }

            return (float) d;
        }