Skip to content

Commit a774c01

Browse files
authored
Merge pull request #770 from erdelf/master
Squadron Sergeant via data id
2 parents e0999ce + 967f347 commit a774c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AutoDuty/Managers/SquadronManager.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ internal unsafe bool OpenSquadron(AtkUnitBase* aub)
106106
}
107107

108108
// Attempt to get the squadron sergeant once and reuse the result --- This still sets this every call I will change this to one and done later.
109-
IGameObject? gameObject = ObjectHelper.GetObjectByPartialName("Squadron Sergeant");
109+
IGameObject? gameObject = ObjectHelper.GetObjectByDataId(1016924u) ?? ObjectHelper.GetObjectByDataId(1016986u) ?? ObjectHelper.GetObjectByDataId(1016987u);
110110
if (gameObject == null || !MovementHelper.Move(gameObject, 0.25f, 6f))
111111
{
112112
return false;

0 commit comments

Comments
 (0)