Fix tests

This commit is contained in:
Raymond 2021-08-10 18:19:31 -04:00
parent 6cdc6c74fb
commit e9601e9b9f
2 changed files with 7 additions and 7 deletions

View file

@ -1,4 +1,4 @@
using Dalamud.Utility; using Dalamud.Utility;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
@ -18,12 +18,12 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
{ {
ImGui.Text("Checking actor table..."); ImGui.Text("Checking actor table...");
if (this.index == dalamud.ClientState.Actors.Length - 1) if (this.index == dalamud.ClientState.Objects.Length - 1)
{ {
return SelfTestStepResult.Pass; return SelfTestStepResult.Pass;
} }
var actor = dalamud.ClientState.Actors[this.index]; var actor = dalamud.ClientState.Objects[this.index];
this.index++; this.index++;
if (actor == null) if (actor == null)

View file

@ -1,5 +1,5 @@
using Dalamud.Game.ClientState.Actors.Types; using Dalamud.Game.ClientState.Objects.SubKinds;
using Dalamud.Game.ClientState.Actors.Types.NonPlayer; using Dalamud.Game.ClientState.Objects.Types;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
@ -20,7 +20,7 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
switch (this.step) switch (this.step)
{ {
case 0: case 0:
dalamud.ClientState.Targets.ClearCurrentTarget(); dalamud.ClientState.Targets.ClearTarget();
dalamud.ClientState.Targets.ClearFocusTarget(); dalamud.ClientState.Targets.ClearFocusTarget();
this.step++; this.step++;
@ -30,7 +30,7 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
case 1: case 1:
ImGui.Text("Target a player..."); ImGui.Text("Target a player...");
var cTarget = dalamud.ClientState.Targets.CurrentTarget; var cTarget = dalamud.ClientState.Targets.Target;
if (cTarget is PlayerCharacter) if (cTarget is PlayerCharacter)
{ {
this.step++; this.step++;