Mercurial > wow > wowdb-profiler
comparison Comments.lua @ 329:84817627cb22 WoD
Many changes for WoD, including support for Itembonuses, the new GUID format, and LOOT_READY.
author | MMOSimca <MMOSimca@gmail.com> |
---|---|
date | Wed, 06 Aug 2014 04:39:26 -0400 |
parents | 7e8e2297614a |
children | 2ca6db4e2296 |
comparison
equal
deleted
inserted
replaced
328:3487529df8e5 | 329:84817627cb22 |
---|---|
113 | 113 |
114 if not unit_idnum then | 114 if not unit_idnum then |
115 WDP:Printf("Unable to determine unit from '%s'", unit_id) | 115 WDP:Printf("Unable to determine unit from '%s'", unit_id) |
116 return | 116 return |
117 end | 117 end |
118 local type_name = private.UNIT_TYPE_NAMES[unit_type + 1] | 118 local type_name = private.UNIT_TYPE_NAMES[unit_type] |
119 local unit_name = is_command and _G.UnitName(unit_id) or comment_units[unit_id].name | 119 local unit_name = is_command and _G.UnitName(unit_id) or comment_units[unit_id].name |
120 | 120 |
121 table.wipe(comment_units) | 121 table.wipe(comment_units) |
122 NewComment(type_name, unit_name, unit_idnum) | 122 NewComment(type_name, unit_name, unit_idnum) |
123 end | 123 end |