public static bool CastIngite(Obj_AI_Hero target) { var igniteSlot = target.GetIngiteSlot(); if (igniteSlot != SpellSlot.Unknown && player.GetSpell(igniteSlot).State == SpellState.Ready) return player.Spellbook.CastSpell(igniteSlot, target); return false; }
public static bool CastIngite(Obj_AI_Hero target) { var igniteSlot = target.GetIngiteSlot(); if (igniteSlot != SpellSlot.Unknown && player.GetSpell(igniteSlot).State == SpellState.Ready) { return(player.Spellbook.CastSpell(igniteSlot, target)); } return(false); }
public static SpellSlot[] GetSpellSlots(this ComboSpell spell) { switch (spell) { case ComboSpell.Q: case ComboSpell.W: case ComboSpell.E: case ComboSpell.R: return(new[] { spell.GetSpell().Slot }); case ComboSpell.IGNITE: return(new[] { player.GetIngiteSlot() }); default: return(new[] { SpellSlot.Unknown }); } }
public static bool HasIgniteReady(this Obj_AI_Hero target) { var igniteSlot = target.GetIngiteSlot(); return(igniteSlot != SpellSlot.Unknown && player.GetSpell(igniteSlot).State == SpellState.Ready); }
public static bool HasIgnite(this Obj_AI_Hero target) { return(target.GetIngiteSlot() != SpellSlot.Unknown); }