From ddd60a730efcd942185a90a330f0240d761832fd Mon Sep 17 00:00:00 2001 From: Anna Date: Sat, 8 Aug 2020 22:16:00 -0400 Subject: [PATCH] feat: add debug target status info --- Peeping Tom/PluginUI.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Peeping Tom/PluginUI.cs b/Peeping Tom/PluginUI.cs index 19357ac..6e94a3b 100644 --- a/Peeping Tom/PluginUI.cs +++ b/Peeping Tom/PluginUI.cs @@ -312,6 +312,13 @@ namespace PeepingTom { ImGui.Text($"Status: {status}"); } + PlayerCharacter currentTarget = this.GetCurrentTarget(); + if (currentTarget != null) { + IntPtr statusPtr = this.plugin.Interface.TargetModuleScanner.ResolveRelativeAddress(currentTarget.Address, 0x1901); + byte status = Marshal.ReadByte(statusPtr); + ImGui.Text($"Target status: {status}"); + } + ImGui.EndTabItem(); }