//assuming the usage of the RiotSharp library if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Targeted.IsReady) { //cast the spell ObjectManager.Player.Spellbook.CastSpell(SpellSlot.Q, target); }
//assuming the usage of the Overwatch API library if (player.HeroesSelected[0].Abilities[1].Targeted.IsReady) { //use the ability OverwatchAPI.Client.UseAbility(player.Token, player.HeroesSelected[0].Abilities[1].Id, target.Id); }In this example, the code checks whether the second ability of the hero currently selected by the player is ready to be cast, and if so, it uses the ability on the specified target. Determining the library used requires knowledge of the specific context and environment in which the code is written, as there may be multiple libraries containing the `Spell.Targeted.IsReady` property.