claude-memory/graph/solutions/spell-damage-button-for-foundry-chat-12fa77.md
Cal Corum b140d4d82a migrate: 313 memories from MemoryGraph
- 313 new markdown files created
- 30 relationships embedded
- 313 entries indexed
- State initialized with usage data
2026-02-13 11:11:48 -06:00

13 lines
594 B
Markdown

---
id: 12fa777e-46a3-49b0-a432-15bec3921640
type: solution
title: "Spell damage button for Foundry chat"
tags: [vagabond-rpg, foundry-vtt, javascript, chat-cards, fix]
importance: 0.5
confidence: 0.8
created: "2025-12-18T00:14:15.893658+00:00"
updated: "2025-12-18T00:14:15.893658+00:00"
---
Added Roll Damage button to spell chat cards instead of auto-rolling damage. Matches attack roll pattern: store spell/damage data in message flags, render button in template, handle click via renderChatMessage hook to roll and update message. Also fixed spell chat card CSS for proper header layout.