--- 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.