Example #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);
        }