private static bool CastQKill(Spell spell, Obj_AI_Base target) { var pred = spell.VPrediction(target, true, CollisionableObjects.YasuoWall); if (pred.Hitchance < Q.MinHitChance) { return false; } var col = pred.VCollision(CollisionableObjects.Heroes | CollisionableObjects.Minions); if (col.Count == 0 && Q.Cast(pred.CastPosition)) { return true; } return col.Count > 0 && (target.Type == GameObjectType.obj_AI_Hero ? target.Health + target.PhysicalShield : spell.GetHealthPrediction(target)) <= Q.GetDamage(target, Damage.DamageStage.SecondForm) && Q.Cast(pred.CastPosition); }