Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AutoDuty/AutoDuty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public AutoDuty()
AssemblyDirectoryInfo = AssemblyFileInfo.Directory;

Version =
((PluginInterface.IsDev ? new Version(0,0,0, 251) :
((PluginInterface.IsDev ? new Version(0,0,0, 252) :
PluginInterface.IsTesting ? PluginInterface.Manifest.TestingAssemblyVersion ?? PluginInterface.Manifest.AssemblyVersion : PluginInterface.Manifest.AssemblyVersion)!).Revision;

if (!_configDirectory.Exists)
Expand Down
6 changes: 3 additions & 3 deletions AutoDuty/Managers/ActionsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,15 @@ public unsafe void ConditionAction(PathAction action)
IGameObject? gameObject = null;
if ((gameObject = GetObjectByDataId(uint.TryParse(conditionArray[1], out uint dataId) ? dataId : 0)) != null)
{
var csObj = *gameObject.Struct();
var csObj = gameObject.Struct();
switch (conditionArray[2])
{
case "EventState":
if (csObj.EventState == (int.TryParse(conditionArray[3], out int es) ? es : -1))
if (csObj->EventState == (int.TryParse(conditionArray[3], out int es) ? es : -1))
invokeAction = true;
break;
case "IsTargetable":
if (csObj.GetIsTargetable() == (bool.TryParse(conditionArray[3], out bool it) && it))
if (csObj->GetIsTargetable() == (bool.TryParse(conditionArray[3], out bool it) && it))
invokeAction = true;
break;
}
Expand Down