fix l2c_getObjectInfoByObjectId(): return isAlikeDead for pc/npc/mob as boolean value, not integer

This commit is contained in:
alexey.min
2012-05-19 16:25:59 +00:00
parent f2c52cbb3c
commit 6b8be35686
2 changed files with 5 additions and 5 deletions

View File

@@ -150,17 +150,17 @@ function isDead( objectId )
local objectInfo = l2c_getObjectInfoByObjectId( objectId );
if objectInfo == nil then return true end
if( objectInfo.type == "pc" ) then
if( objectInfo.isAlikeDead == 1 ) then
if( objectInfo.isAlikeDead ) then
return true
end
end
if( objectInfo.type == "npc" ) then
if( objectInfo.isAlikeDead == 1 ) then
if( objectInfo.isAlikeDead ) then
return true
end
end
if( objectInfo.type == "mob" ) then
if( objectInfo.isAlikeDead == 1 ) then
if( objectInfo.isAlikeDead ) then
return true
end
end