worldbox-observer-mod/IdleSpectator/FocusArrowPatches.cs
2026-07-14 18:35:06 -05:00

17 lines
542 B
C#

using HarmonyLib;
namespace IdleSpectator;
/// <summary>
/// After vanilla hover clears <see cref="UnitSelectionEffect.last_actor"/>,
/// re-pin the Idle Spectator focus so destination / lover / attack arrows still draw.
/// </summary>
[HarmonyPatch(typeof(UnitSelectionEffect), nameof(UnitSelectionEffect.update))]
internal static class FocusArrowPatches
{
[HarmonyPostfix]
private static void PinFocusAfterVanillaHover(UnitSelectionEffect __instance, float pElapsed)
{
FocusRelationshipArrows.PinFocusActor();
}
}