private static void ProcessIgnite(Obj_AI_Hero target) { if (IgniteSpell.Slot != LeagueSharp.SpellSlot.Unknown && target.IsValidTarget() && EntryPoint.Player.Distance(target) <= 360000 && target.GetIgniteDamage() > target.Health) { if (EntryPoint.Menu.Item("l33t.stds.misc.ignitecd").GetValue <bool>()) { var currentTick = (int)(Game.ClockTime * 0x3E8); var tickDelay = 750 + Game.Ping; if (!Spells[SpellSlot.Q].IsReady() && !Spells[SpellSlot.W].IsReady() && !Spells[SpellSlot.E].IsReady() && !Spells[SpellSlot.R].IsReady() && currentTick - Spells[SpellSlot.Q].LastCastAttemptTick > tickDelay && currentTick - Spells[SpellSlot.SphereE].LastCastAttemptTick > tickDelay && currentTick - Spells[SpellSlot.W].LastCastAttemptTick > tickDelay) { IgniteSpell.Cast(target); } } else { IgniteSpell.Cast(target); } } }
private static void ProcessIgnite(Obj_AI_Hero target) { if (IgniteSpell.Slot != LeagueSharp.SpellSlot.Unknown && target.IsValidTarget() && EntryPoint.Player.Distance(target) <= 360000 && target.GetIgniteDamage() > target.Health) { if (EntryPoint.Menu.Item("l33t.stds.misc.ignitecd").GetValue<bool>()) { var currentTick = (int) (Game.ClockTime * 0x3E8); var tickDelay = 750 + Game.Ping; if (!Spells[SpellSlot.Q].IsReady() && !Spells[SpellSlot.W].IsReady() && !Spells[SpellSlot.E].IsReady() && !Spells[SpellSlot.R].IsReady() && currentTick - Spells[SpellSlot.Q].LastCastAttemptTick > tickDelay && currentTick - Spells[SpellSlot.SphereE].LastCastAttemptTick > tickDelay && currentTick - Spells[SpellSlot.W].LastCastAttemptTick > tickDelay) { IgniteSpell.Cast(target); } } else { IgniteSpell.Cast(target); } } }