Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Fix queued actions interfering
Browse files Browse the repository at this point in the history
  • Loading branch information
Taurenkey committed Aug 3, 2024
1 parent 9177320 commit b6e8348
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion XIVSlothCombo/CustomCombo/CustomCombo.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
using Dalamud.Utility;
using ECommons.DalamudServices;
using FFXIVClientStructs.FFXIV.Client.Game;
using XIVSlothCombo.Attributes;
using XIVSlothCombo.Combos;
using XIVSlothCombo.Combos.PvE;
using XIVSlothCombo.CustomComboNS.Functions;
using XIVSlothCombo.Extensions;

namespace XIVSlothCombo.CustomComboNS
{
Expand Down Expand Up @@ -50,10 +53,13 @@ protected CustomCombo()
/// <param name="newActionID"> Replacement action ID. </param>
/// <returns> True if the action has changed, otherwise false. </returns>

public bool TryInvoke(uint actionID, byte level, uint lastComboMove, float comboTime, out uint newActionID)
public unsafe bool TryInvoke(uint actionID, byte level, uint lastComboMove, float comboTime, out uint newActionID)
{
newActionID = 0;

if (ActionManager.Instance()->QueuedActionType == ActionType.Action && ActionManager.Instance()->QueuedActionId != actionID)
return false;

if (!IsEnabled(Preset))
return false;

Expand Down

0 comments on commit b6e8348

Please sign in to comment.