Example #1
0
        /// <summary>
        ///     Checks if the given target is killable
        /// </summary>
        /// <param name="target">
        ///     The Target
        /// </param>
        /// <returns>
        ///     The <see cref="bool" />.
        /// </returns>
        public static bool IsRendKillable(this Obj_AI_Base target)
        {
            if (target.IsInvulnerable || !target.HasBuff("kalistaexpungemarker"))
            {
                return(false);
            }

            double baseDamage = Kalista.Menu.Item("com.ikalista.misc.damage").GetValue <StringList>().SelectedIndex == 0
                                    ? SpellManager.Spell[SpellSlot.E].GetDamage(target)
                                    : Damages.GetRendDamage(target);

            return((float)baseDamage >= target.GetHealthWithShield());
        }
Example #2
0
 public static float GetRendDamage(Obj_AI_Base target)
 =>
 Kalista.Menu.Item("com.ikalista.misc.damage").GetValue <StringList>().SelectedIndex == 0
             ? SpellManager.Spell[SpellSlot.E].GetDamage(target)
             : Damages.GetRendDamage(target);