Skip to content

Commit

Permalink
Update MyTarget.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
SecurityRisk committed Dec 4, 2015
1 parent 0c2d543 commit df6e5df
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions core/MyTarget.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
return {
getHp = function()
return info.GetStat(session.GetTargetHandle()).HP;
end,

getHPMax = function()
return info.GetStat(session.GetTargetHandle()).MaxHP;
end,

getSP = function()
return info.GetStat(session.GetTargetHandle()).SP;
end,

getSPMax = function()
return info.GetStat(session.GetTargetHandle()).MaxSP;
end,

getLevel = function()
return info.GetTargetInfo(session.GetTargetHandle()).level;
end,

getName = function()
return info.GetTargetInfo(session.GetTargetHandle()).name;
end,

isPlayer = function()
end,

isMonster = function()
end

}

0 comments on commit df6e5df

Please sign in to comment.