Mercurial > wow > wowdb-profiler
comparison Main.lua @ 206:d401bf9aa80c
Do not set current_action.identifier on target-change; it should already be set for the current_action, and setting it to something different will only skew data.
| author | James D. Callahan III <jcallahan@curse.com> | 
|---|---|
| date | Mon, 10 Dec 2012 17:06:44 -0600 | 
| parents | 6cac044fd0f9 | 
| children | b51fc4675550 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 205:6cac044fd0f9 | 206:d401bf9aa80c | 
|---|---|
| 924 local power_type = _G.UnitPowerType("target") | 924 local power_type = _G.UnitPowerType("target") | 
| 925 encounter_data[npc_level].power = ("%s:%d"):format(POWER_TYPE_NAMES[_G.tostring(power_type)] or power_type, max_power) | 925 encounter_data[npc_level].power = ("%s:%d"):format(POWER_TYPE_NAMES[_G.tostring(power_type)] or power_type, max_power) | 
| 926 end | 926 end | 
| 927 end | 927 end | 
| 928 name_to_id_map[_G.UnitName("target")] = unit_idnum | 928 name_to_id_map[_G.UnitName("target")] = unit_idnum | 
| 929 current_action.identifier = unit_idnum | |
| 930 return npc, unit_idnum | 929 return npc, unit_idnum | 
| 931 end | 930 end | 
| 932 end -- do-block | 931 end -- do-block | 
| 933 | 932 | 
| 934 | 933 | 
