Herbalism sucks indeed
ckaotik [03-12-10 - 21:13]
diff --git a/Broker_Garbage.toc b/Broker_Garbage.toc
index 1cb3597..e17f73f 100644
--- a/Broker_Garbage.toc
+++ b/Broker_Garbage.toc
@@ -8,7 +8,7 @@
## Notes: Full bags no more! Find your least valuable item .. and destroy it!
## Notes-deDE: Endlich wieder Platz! Finde dein billigstes Item ... und zerstöre es.
## Author: ckaotik
-## Version: 3.3v17beta1
+## Version: 3.3v17
## X-Embeds: LibPeriodicTable-3.1
## X-Category: Inventory
## X-Credits: GarbageFu(Jaerin/wmrojer), tekKonfig(Tekkub), KarniCrap(Karnifex)
diff --git a/core.lua b/core.lua
index daa812f..accdeb2 100644
--- a/core.lua
+++ b/core.lua
@@ -318,10 +318,10 @@ function BrokerGarbage:UnLocalize(skillName)
skill = "Skinning"
elseif skillName == GetSpellInfo(2575) then
skill = "Mining"
- elseif skillName == GetSpellInfo(2366) then
- -- herbalism sucks
- source = GetAuctionItemSubClasses(6)
- if string.find(skillName, source[6]) then
+ else
+ -- herbalism sucks /dump BrokerGarbage:UnLocalize("Kräuterkunde")
+ searchString = select(6, GetAuctionItemSubClasses(6))
+ if string.find(skillName, searchString) then
skill = "Herbalism"
end
end