Mercurial > wow > wowdb-profiler
comparison Main.lua @ 85:e2b741356fc9
Record reputation gains from harvesting.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Thu, 23 Aug 2012 14:15:01 -0500 |
parents | 1f09f3590baa |
children | 9be5fc389c13 |
comparison
equal
deleted
inserted
replaced
84:1f09f3590baa | 85:e2b741356fc9 |
---|---|
1397 function WDP:UNIT_SPELLCAST_SUCCEEDED(event_name, unit_id, spell_name, spell_rank, spell_line, spell_id) | 1397 function WDP:UNIT_SPELLCAST_SUCCEEDED(event_name, unit_id, spell_name, spell_rank, spell_line, spell_id) |
1398 if unit_id ~= "player" then | 1398 if unit_id ~= "player" then |
1399 return | 1399 return |
1400 end | 1400 end |
1401 private.tracked_line = nil | 1401 private.tracked_line = nil |
1402 | |
1403 if spell_name:match("^Harvest") then | |
1404 reputation_npc_id = action_data.identifier | |
1405 end | |
1402 end | 1406 end |
1403 | 1407 |
1404 function WDP:HandleSpellFailure(event_name, unit_id, spell_name, spell_rank, spell_line, spell_id) | 1408 function WDP:HandleSpellFailure(event_name, unit_id, spell_name, spell_rank, spell_line, spell_id) |
1405 if unit_id ~= "player" then | 1409 if unit_id ~= "player" then |
1406 return | 1410 return |