@@ -859,6 +859,13 @@ function Simulationcraft:GetSimcProfile(debugOutput, noBags, showMerchant, links
859859 end
860860 local playerSpec = specNames [ globalSpecID ] or ' unknown'
861861
862+ -- Loot spec
863+ local lootSpecId = GetLootSpecialization ()
864+ if lootSpecId == 0 then
865+ lootSpecId = globalSpecID
866+ end
867+ local playerLootSpec = specNames [ lootSpecId ]
868+
862869 -- Professions
863870 local pid1 , pid2 = GetProfessions ()
864871 local firstProf , firstProfRank , secondProf , secondProfRank , profOneId , profTwoId
@@ -901,6 +908,7 @@ function Simulationcraft:GetSimcProfile(debugOutput, noBags, showMerchant, links
901908 local playerSpecStr = ' spec=' .. Tokenize (playerSpec )
902909 playerRealm = ' server=' .. Tokenize (playerRealm )
903910 playerRegion = ' region=' .. Tokenize (playerRegion )
911+ local playerLootSpecStr = ' loot_spec=' .. Tokenize (playerLootSpec )
904912
905913 -- Build the output string for the player (not including gear)
906914 local simcPrintError = nil
@@ -926,6 +934,7 @@ function Simulationcraft:GetSimcProfile(debugOutput, noBags, showMerchant, links
926934 simulationcraftProfile = simulationcraftProfile .. playerRole .. ' \n '
927935 simulationcraftProfile = simulationcraftProfile .. playerProfessions .. ' \n '
928936 simulationcraftProfile = simulationcraftProfile .. playerSpecStr .. ' \n '
937+ simulationcraftProfile = simulationcraftProfile .. ' # ' .. playerLootSpecStr .. ' \n '
929938 simulationcraftProfile = simulationcraftProfile .. ' \n '
930939
931940 if playerSpec == ' unknown' then -- luacheck: ignore
0 commit comments