Exemple #1
0
        private static float GetItemDamage(AIHeroClient t)
        {
            var d         = 0d;
            var dumpSpell = new Spell();

            if (Player.CanUseItem((int)ItemId.Bilgewater_Cutlass))
            {
                d += Player.CalculateMagicDamage(t, 100);
            }
            if (Player.CanUseItem((int)ItemId.Hextech_Gunblade))
            {
                d += Player.CalculateMagicDamage(t, Hextech_Gunblade_Damage[Player.Level] + Player.TotalMagicalDamage * .3);
            }
            if (Player.CanUseItem((int)ItemId.Hextech_Revolver))
            {
                d += Player.CalculateMagicDamage(t, Hextech_Revolver_Damage[Player.Level] + Player.TotalMagicalDamage * .3);
            }
            if (Player.CanUseItem((int)ItemId.Sheen))
            {
                d += Player.CalculatePhysicalDamage(t, Player.TotalAttackDamage);
            }
            if (Player.CanUseItem((int)ItemId.Lich_Bane))
            {
                d += Player.CalculateMixedDamage(t, Player.TotalAttackDamage * .75, Player.TotalMagicalDamage * .5);
            }
            return((float)d);
        }
Exemple #2
0
        private static float getDamage(AIBaseClient target, bool q = false, bool w = false, bool r = false, bool ignite = false)
        {
            float damage = 0;

            if (target == null || target.IsDead)
            {
                return(0);
            }
            if (target.HasBuffOfType(BuffType.Invulnerability))
            {
                return(0);
            }

            if (q && Q.IsReady())
            {
                damage += (float)Damage.GetSpellDamage(objPlayer, target, SpellSlot.Q);
            }
            if (w && W.IsReady())
            {
                damage += (float)Damage.GetSpellDamage(objPlayer, target, SpellSlot.W);
            }
            if (r && R.IsReady())
            {
                damage += (float)Damage.GetSpellDamage(objPlayer, target, SpellSlot.R);
            }

            if (ignite && summonerIgnite.IsReady())
            {
                damage += (float)objPlayer.GetSummonerSpellDamage(target, SummonerSpell.Ignite);
            }

            if (objPlayer.GetBuffCount("itemmagicshankcharge") == 100) // oktw sebby
            {
                damage += (float)objPlayer.CalculateMagicDamage(target, 100 + 0.1 * objPlayer.TotalMagicalDamage);
            }

            if (target.HasBuff("ManaBarrier") && target.HasBuff("BlitzcrankManaBarrierCO"))
            {
                damage += target.Mana / 2f;
            }
            if (target.HasBuff("GarenW"))
            {
                damage = damage * 0.7f;
            }
            if (target.CharacterName == "Morderkaiser")
            {
                damage -= target.Mana;
            }
            if (objPlayer.HasBuff("SummonerExhaust"))
            {
                damage = damage * 0.6f;
            }
            if (target.HasBuff("ferocioushowl"))
            {
                damage = damage * 0.7f;
            }

            return(damage);
        }
Exemple #3
0
        private static float getDamage(AIBaseClient target, bool q = false, bool w = false, bool r = false, bool ignite = false)
        {
            float damage = 0;

            if (target == null || target.IsDead)
            {
                return(0);
            }

            if (target.HasBuffOfType(BuffType.Invulnerability))
            {
                return(0);
            }
            if (target.HasBuff("KingredRNoDeathBuff") || target.HasBuff("FioraW") || target.HasBuff("UndyingRage"))
            {
                return(0);
            }

            if (q && Q.IsReady())
            {
                damage += (float)Damage.GetSpellDamage(objPlayer, target, SpellSlot.Q);
            }
            if (w && W.IsReady())
            {
                damage += (float)Damage.GetSpellDamage(objPlayer, target, SpellSlot.W);
            }
            if (r && R.IsReady() && !objPlayer.HasBuff("AnnieRController"))
            {
                damage += (float)Damage.GetSpellDamage(objPlayer, target, SpellSlot.R);
            }

            if (ignite && summonerIgnite.IsReady())
            {
                damage += (float)objPlayer.GetSummonerSpellDamage(target, SummonerSpell.Ignite);
            }

            if (objPlayer.GetBuffCount("itemmagicshankcharge") == 100) // oktw
            {
                damage += (float)objPlayer.CalculateMagicDamage(target, 100 + 0.1 * objPlayer.TotalMagicalDamage);
            }

            if (objPlayer.HasBuff("SummonerExhaust"))
            {
                damage = damage * 0.6f;
            }

            if (target.HasBuff("ManaBarrier") && target.HasBuff("BlitzcrankManaBarrierCO"))
            {
                damage += target.Mana / 2f;
            }
            if (target.HasBuff("GarenW"))
            {
                damage = damage * 0.7f;
            }

            return(damage);
        }