/// <summary> /// Uses a spell from the SpellList enum by target name. /// </summary> /// <param name="spell"></param> /// <param name="castTime"></param> /// <param name="targetName"></param> /// <returns></returns> public bool UseSpell(SpellList spell, int castTime, string targetName) { return(SendCommand("/ma \"" + spell.ToString().Replace('_', ' ') + "\" " + targetName, castTime)); }
/// <summary> /// Uses a spell from the SpellList enum. /// </summary> /// <example> /// UseSpell(SpellList.Flash, 3, true); /// UseSpell(SpellList.Stoneskin, 3, false); /// </example> /// <param name="ability">The ability to use</param> /// <param name="Delay">How long does it take to use this ability? (Consider lockout after use)</param> /// <param name="Offensive">Is this ability used on me, or my target?</param> public bool UseSpell(SpellList spell, int castTime, bool Offensive = false) { return(SendCommand("/ma \"" + spell.ToString().Replace('_', ' ') + "\" " + (Offensive ? "<t>" : "<me>"), castTime)); }