Fix Repentance placeholder VFX: targets, colors, animation check
High: server now computes visual targets after resolution — prefers client-provided unit InstanceId or tile Coord, falls back to the first live opponent ArchSpirit so targetless/server-resolved effects always have a destination. Medium: source ArchSpirit fallback now looks up the actor's player in game state rather than get_my_player(), fixing opponent and spectator views. Medium: player color now uses teamIndex from the player DTO instead of deriving it from seatOrder, fixing team and multiplayer modes. Low: hasCustomAnimation check now scans all Active ability definitions for a non-empty AssetUrl, not just abilities[0]. Low: server no longer sends the push (or the HasCustomAnimation field) when a custom animation exists; client-side guard removed accordingly. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -84,8 +84,9 @@ signal player_pick_request(request_data: Dictionary)
|
||||
signal reveal_choice_pick_request(request_data: Dictionary)
|
||||
|
||||
## Emitted when a Repentance card resolves with no custom animation asset.
|
||||
## Server only emits this when no active ability on the card has a usable AssetUrl.
|
||||
## Payload keys: eventId, sessionId, actorAccountId, sourceArchSpiritInstanceId,
|
||||
## cardInstanceId, cardDefinitionId, cardName, affinity, targets, hasCustomAnimation
|
||||
## cardInstanceId, cardDefinitionId, cardName, affinity, targets
|
||||
signal repentance_placeholder_visual(payload: Dictionary)
|
||||
|
||||
# ── State ─────────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user