From d9bcb18bfd40af13cac5b5f27baf2ce65607a5f5 Mon Sep 17 00:00:00 2001 From: MpakobecEx Date: Fri, 23 Oct 2026 20:44:51 +0500 Subject: [PATCH] Keep activated ability action visible on card click --- client/Assets/Vanguard/Runtime/UI/BattleView.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/Assets/Vanguard/Runtime/UI/BattleView.cs b/client/Assets/Vanguard/Runtime/UI/BattleView.cs index c0c6599..8deea7d 100644 --- a/client/Assets/Vanguard/Runtime/UI/BattleView.cs +++ b/client/Assets/Vanguard/Runtime/UI/BattleView.cs @@ -2361,6 +2361,16 @@ namespace Vanguard.UI } var abilities = sources.OfType().ToList(); + if (abilities.Count == 0 + && card.Zone is BoardZone.Vanguard or BoardZone.RearGuard) + { + // Fallback: never hide an activated ability because source + // target resolution failed for an unusual card placement. + abilities = legal.OfType() + .Where(ability => ability.InstanceId == card.InstanceId) + .ToList(); + } + if (abilities.Count > 0) { actions.Add(new CardActionMenuItem(