/// <summary> /// Determines whether [is killable with spell w and spell r and automatic attack] [the specified enemy hero]. /// </summary> /// <param name="enemyHero">The enemy hero.</param> /// <returns>Task<System.Boolean>.</returns> private async Task <bool> IsKillableWithSpellWAndSpellRAndAutoAttack(Obj_AI_Base enemyHero) { return(await Task.FromResult(WSpell.Ready && RSpell.Ready && LocalHero.GetSpellDamage(enemyHero, SpellSlot.W) + LocalHero.GetSpellDamage(enemyHero, SpellSlot.R) + LocalHero.GetAutoAttackDamage(enemyHero) > enemyHero.Health + enemyHero.PhysicalShield && IsValidTargetLocked(enemyHero, WSpell.Range))); }
/// <summary> /// Determines whether [is killable with spell r] [the specified enemy hero]. /// </summary> /// <param name="enemyHero">The enemy hero.</param> /// <returns>Task<System.Boolean>.</returns> private async Task <bool> IsKillableWithSpellR(Obj_AI_Base enemyHero) { return(await Task.FromResult(RSpell.Ready && LocalHero.GetSpellDamage(enemyHero, SpellSlot.R) > enemyHero.Health + enemyHero.MagicalShield + 20 && IsValidTargetLocked(enemyHero, RSpell.Range) && enemyHero.HasBuff("recall"))); }