Skip to content

Commit

Permalink
重伤记录获取名字的方法使用库函数获取
Browse files Browse the repository at this point in the history
  • Loading branch information
tinymins committed Dec 8, 2016
1 parent 0903cbd commit 9376933
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RaidTools/DeathLog.lua
@@ -1,7 +1,7 @@
-- @Author: Webster
-- @Date: 2016-02-24 00:09:06
-- @Last Modified by: Webster
-- @Last Modified time: 2016-02-24 22:45:50
-- @Last modified by: Zhai Yiming
-- @Last modified time: 2016-12-08 17:55:51

local _L = JH.LoadLangPack

Expand Down Expand Up @@ -137,7 +137,7 @@ local function OnDeath(dwCharacterID, dwKiller)
dwCharacterID = dwCharacterID == PLAYER_ID and "self" or dwCharacterID
DEATH_LOG[dwCharacterID] = DEATH_LOG[dwCharacterID] or {}
local killer = (IsPlayer(dwKiller) and GetPlayer(dwKiller)) or (not IsPlayer(dwKiller) and GetNpc(dwKiller))
local szKiller = killer and killer.szName or ""
local szKiller = killer and JH.GetTemplateName(killer, true) or ""
if DAMAGE_LOG[dwCharacterID] then
tinsert(DEATH_LOG[dwCharacterID], {
nCurrentTime = GetCurrentTime(),
Expand Down

0 comments on commit 9376933

Please sign in to comment.