Mercurial > wow > wowdb-profiler
comparison Main.lua @ 144:ba5422e37516
Always set current_merchant when MERCHANT_SHOW fires.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Tue, 02 Oct 2012 13:25:19 -0500 |
parents | 15ff29752523 |
children | f8a5080a60c6 |
comparison
equal
deleted
inserted
replaced
143:15ff29752523 | 144:ba5422e37516 |
---|---|
1372 merchant_standing = nil | 1372 merchant_standing = nil |
1373 end | 1373 end |
1374 | 1374 |
1375 | 1375 |
1376 function WDP:UpdateMerchantItems(event_name) | 1376 function WDP:UpdateMerchantItems(event_name) |
1377 if not current_merchant then | 1377 if not current_merchant or event_name == "MERCHANT_SHOW" then |
1378 local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("target")) | 1378 local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("target")) |
1379 | 1379 |
1380 if unit_type ~= private.UNIT_TYPES.NPC or not unit_idnum then | 1380 if unit_type ~= private.UNIT_TYPES.NPC or not unit_idnum then |
1381 return | 1381 return |
1382 end | 1382 end |