From df6e5df2c48b2a8e7490074b1d434b967fb656b8 Mon Sep 17 00:00:00 2001 From: SecurityRisk Date: Fri, 4 Dec 2015 05:20:41 -0500 Subject: [PATCH] Update MyTarget.lua --- core/MyTarget.lua | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/core/MyTarget.lua b/core/MyTarget.lua index e69de29..430f50f 100644 --- a/core/MyTarget.lua +++ b/core/MyTarget.lua @@ -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 + +}