Mercurial > wow > wowdb-profiler
comparison Main.lua @ 293:f0a3a45eb5f5
Fix to not detect socket-given stats, socket bonuses, and set bonuses.
| author | James D. Callahan III <jcallahan@curse.com> |
|---|---|
| date | Thu, 13 Jun 2013 14:44:44 -0500 |
| parents | 385237bb6ab9 |
| children | 8cf9787fafe7 |
comparison
equal
deleted
inserted
replaced
| 292:81abf73bf3b7 | 293:f0a3a45eb5f5 |
|---|---|
| 822 local create_entry | 822 local create_entry |
| 823 | 823 |
| 824 table.wipe(intermediary) | 824 table.wipe(intermediary) |
| 825 | 825 |
| 826 for line_index = 1, DatamineTT:NumLines() do | 826 for line_index = 1, DatamineTT:NumLines() do |
| 827 local left_text = _G["WDPDatamineTTTextLeft" .. line_index]:GetText() | 827 local left_text = _G["WDPDatamineTTTextLeft" .. line_index]:GetText():trim() |
| 828 | 828 |
| 829 if not left_text then | 829 if not left_text or left_text == "" or left_text:find("Socket") or left_text:find("Set:") then |
| 830 return | 830 break |
| 831 end | 831 end |
| 832 local amount, stat = left_text:match("+(.-) (.*)") | 832 local amount, stat = left_text:match("+(.-) (.*)") |
| 833 | 833 |
| 834 if amount and stat then | 834 if amount and stat then |
| 835 if reforge_id and reforge_id ~= 0 then | 835 if reforge_id and reforge_id ~= 0 then |
