public static Obj_AI_Base findUnkillable() { EnemyMinions = MinionManager.GetMinions(player.Position, 1500); foreach (var enemyMinion in EnemyMinions) { var minHealthPred = DamagePrediction.getPred(enemyMinion, DamagePrediction.PredType.PRED_UNKILLABLE); if (minHealthPred <= 0) { return(enemyMinion); } } return(null); }
public static Obj_AI_Base shouldWait() { EnemyMinions = MinionManager.GetMinions(player.Position, 1500); foreach (var enemyMinion in EnemyMinions) { if (!DeathWalker.inAutoAttackRange(enemyMinion)) { continue; } var minHealthPred = DamagePrediction.getPred(enemyMinion, DamagePrediction.PredType.PRED_TWO_HITS); var dmgOnMinion = player.GetAutoAttackDamage(enemyMinion, true); if (minHealthPred <= dmgOnMinion) { return(enemyMinion); } } return(null); }
public static Obj_AI_Base findKillable() { EnemyMinions = MinionManager.GetMinions(player.Position, 1500); foreach (var enemyMinion in EnemyMinions) { if (!DeathWalker.inAutoAttackRange(enemyMinion)) { continue; } var minHealthPred = DamagePrediction.getPred(enemyMinion, DamagePrediction.PredType.PRED_LAST_HIT); var dmgOnMinion = player.GetAutoAttackDamage(enemyMinion, true); if (minHealthPred <= dmgOnMinion && minHealthPred > lowerLimit) { return(enemyMinion); } } return(null); }