feat: add debug target status info

This commit is contained in:
Anna 2020-08-08 22:16:00 -04:00
parent 33dbff01b2
commit ddd60a730e
1 changed files with 7 additions and 0 deletions

View File

@ -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();
}