public Task CastSpellAsync(int id, UnitMetaId target = null) { return(m_game.LuaExecutor.RunScriptAsync($"CastSpellByID({id.ToString(CultureInfo.InvariantCulture)}" + (target != null ? $", {target})" : ")"))); }
public Task CastSpellAsync(string name, UnitMetaId target = null) { return(m_game.LuaExecutor.RunScriptAsync($"CastSpellByName({name}" + (target != null ? $", {target})" : ")"))); }