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

Commit

Permalink
chore: 1.2.0 released.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 19, 2023
1 parent e71ac94 commit ec258a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ActionTimelineEx/ActionTimelineEx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Authors>ArchiTed</Authors>
<PlatformTarget>x64</PlatformTarget>
<Platforms>AnyCPU</Platforms>
<Version>1.1.0</Version>
<Version>1.2.0</Version>
<Nullable>enable</Nullable>
<DalamudLibPath>$(AppData)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
Expand Down
10 changes: 7 additions & 3 deletions ActionTimelineEx/Timeline/TimelineManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,17 +237,21 @@ private void ActionFromSelf(ActionEffectSet set)

for (int i = 0; i < set.Header.TargetCount; i++)
{
set.TargetEffects[i].ForEach(x =>
var effect = set.TargetEffects[i];
var recordTarget = Plugin.Settings.RecordTargetStatus
|| effect.TargetID == Player.Object.ObjectId;

effect.ForEach(x =>
{
switch (x.type)
{
case (ActionEffectType)14 when Plugin.Settings.RecordTargetStatus: // ApplyStatusEffectTarget
case (ActionEffectType)14 when recordTarget: // ApplyStatusEffectTarget
case (ActionEffectType)15: // ApplyStatusEffectSource
var icon = GetStatusIcon(x.value, true);
if (icon != 0) statusGain.Add(icon);
break;

case ActionEffectType.LoseStatusEffectTarget when Plugin.Settings.RecordTargetStatus:
case ActionEffectType.LoseStatusEffectTarget when recordTarget:
case ActionEffectType.LoseStatusEffectSource:
icon = GetStatusIcon(x.value, false);
if (icon != 0) statusLose.Add(icon);
Expand Down

0 comments on commit ec258a3

Please sign in to comment.