Skip to content

Commit

Permalink
Fix #135 and #136
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownX7 committed Nov 18, 2024
1 parent dd42bef commit 755c68c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Hypostasis
2 changes: 1 addition & 1 deletion Modules/EnhancedAutoFaceTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected override void Disable()

private static void PostActionStack(ActionManager* actionManager, uint actionType, uint actionID, uint adjustedActionID, ref ulong targetObjectID, uint param, uint useType, int pvp)
{
if (DalamudApi.DataManager.GetExcelSheet<Action>().GetRow(adjustedActionID) is { NeedToFaceTarget: false })
if (DalamudApi.DataManager.GetExcelSheet<Action>().GetRowOrDefault(adjustedActionID) is { NeedToFaceTarget: false })
removeAutoFaceTargetPatch.Enable();
else
removeAutoFaceTargetPatch.Disable();
Expand Down
4 changes: 2 additions & 2 deletions Modules/QueueMore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ private static void PostUseAction(ActionManager* actionManager, uint actionType,
{
allowQueuingPatch.Disable();

if (ret && DalamudApi.DataManager.GetExcelSheet<Action>().GetRow(adjustedActionID) is { ActionCategory.RowId: 9 or 15 })
if (ret && DalamudApi.DataManager.GetExcelSheet<Action>().GetRowOrDefault(adjustedActionID) is { ActionCategory.RowId: 9 or 15 })
lastLBSequence = actionManager->currentSequence;
}

private static bool CheckAction(uint actionType, uint actionID, uint adjustedActionID) =>
actionType switch
{
1 when DalamudApi.DataManager.GetExcelSheet<Action>().GetRow(adjustedActionID) is { ActionCategory.RowId: 9 or 15 } => lastLBSequence != Common.ActionManager->currentSequence, // Allow LB
1 when DalamudApi.DataManager.GetExcelSheet<Action>().GetRowOrDefault(adjustedActionID) is { ActionCategory.RowId: 9 or 15 } => lastLBSequence != Common.ActionManager->currentSequence, // Allow LB
2 => true, // Allow items
5 when actionID == 4 => true, // Allow Sprint
_ => false
Expand Down
2 changes: 1 addition & 1 deletion ReAction.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.3.3.11</Version>
<Version>1.3.3.12</Version>
<TargetFramework>net8.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<Platforms>x64;AnyCPU</Platforms>
Expand Down

0 comments on commit 755c68c

Please sign in to comment.