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

Commit

Permalink
fix: changed back from the positional check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 12, 2023
1 parent be985ac commit 1565569
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions RotationSolver/Watcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private static unsafe void ReceiveAbilityEffect(uint sourceId, IntPtr sourceChar
if (Service.Player == null) return;
var set = new ActionEffectSet(effectHeader, effectArray, effectTargets);

ActionFromSelf(sourceId, set);
ActionFromSelf(sourceId, set, effectArray->Param2);
ActionFromEnemy(sourceId, set);
}

Expand All @@ -50,7 +50,7 @@ private static void ActionFromEnemy(uint sourceId, ActionEffectSet set)
ShowStrEnemy = set.ToString();
}

private static void ActionFromSelf(uint sourceId, ActionEffectSet set)
private static void ActionFromSelf(uint sourceId, ActionEffectSet set, byte flag)
{
if (sourceId != Service.Player.ObjectId) return;
if (set.Type != ActionType.Spell) return;
Expand All @@ -61,8 +61,6 @@ private static void ActionFromSelf(uint sourceId, ActionEffectSet set)

if (tar == null || action == null) return;

var flag = set.TargetEffects[0][0].Param2;

//Record
DataCenter.AddActionRec(set.Action);
ShowStrSelf = set.ToString();
Expand Down

0 comments on commit 1565569

Please sign in to comment.