Mercurial > wow > wowdb-profiler
diff Main.lua @ 215:3b04818b4c03
Rename PlayerTarget() to TargetedNPC()
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Tue, 22 Jan 2013 12:23:35 -0600 |
parents | 9b0333c7513e |
children | 1af96c9a930e |
line wrap: on
line diff
--- a/Main.lua Mon Jan 21 18:01:26 2013 -0600 +++ b/Main.lua Tue Jan 22 12:23:35 2013 -0600 @@ -872,7 +872,7 @@ end -local PlayerTarget +local TargetedNPC do local GENDER_NAMES = { "UNKNOWN", @@ -902,7 +902,7 @@ } - function PlayerTarget() + function TargetedNPC() if not _G.UnitExists("target") or _G.UnitPlayerControlled("target") or currently_drunk then current_target_id = nil return @@ -957,7 +957,7 @@ return end end - local npc = PlayerTarget() + local npc = TargetedNPC() if not npc then return @@ -1822,7 +1822,7 @@ function WDP:PLAYER_TARGET_CHANGED(event_name) - if not PlayerTarget() then + if not TargetedNPC() then return end current_action.target_type = AF.NPC