示例#1
0
        private float GetComboDamage(Obj_AI_Base enemy)
        {
            if (enemy == null)
            {
                return(0);
            }

            var damage = 0d;

            if (Q.IsReady())
            {
                damage += Player.GetSpellDamage(enemy, SpellSlot.Q);
            }

            if (soldierCount() > 0 || W.IsReady())
            {
                damage += Orbwalker.GetAzirAaSandwarriorDamage(enemy);
            }

            if (E.IsReady())
            {
                damage += Player.GetSpellDamage(enemy, SpellSlot.E);
            }

            if (R.IsReady())
            {
                damage += Player.GetSpellDamage(enemy, SpellSlot.R);
            }

            damage = ItemManager.CalcDamage(enemy, damage);

            return((float)damage);
        }