✨ Features
🎵 Critical Hit Sounds
・Plays a custom sound when you land a critical hit
・Supports melee, ranged, spell, and pet crits
・Separate volume control for crit sounds
・Configurable cooldown to prevent sound spam
🛡️ Block Sounds
・Plays a sound when you block incoming damage
・Detects both BLOCK actions and absorbed damage
・Separate volume control for block sounds
🔊 Sound Management
・Uses PlaySoundFile for high-quality custom sound playback
・Master channel support (or SFX if preferred)
・Custom sound files located in Sounds/ folder:
・crit_sound.ogg – played on critical hits
・block_sound.ogg – played on successful blocks
・Falls back to default WoW sounds if custom files are missing
🐞 Debug Mode & Diagnostic Tools
・Debug frame with real-time combat event logging
・Logs UNIT_COMBAT and COMBAT_TEXT_UPDATE events
・Color-coded messages for easy identification:
🔴 Critical hits
🔵 Block events
🟡 General combat info
・Scrollable log with 100-line limit (prevents performance issues)
🎮 Slash Commands (/csa)
Command Description
/csa test Manually test crit and block sounds
/csa debug Toggle debug mode and show debug frame
/csa frame Show/hide debug frame
/csa cooldown Reset sound cooldowns
/csa config Display current configuration
⚙️ Configuration Options
・Toggle crit sounds for: self, pet, spell, melee
・Toggle block sounds for: self, spell block, melee block
・Adjust crit volume (0.0 – 1.0)
・Adjust block volume (0.0 – 1.0)
・Set sound cooldown to prevent overlapping sounds
・Enable/disable debug mode
📦 Lightweight & Efficient
・Uses event-driven architecture (UNIT_COMBAT, COMBAT_TEXT_UPDATE)
・Sound cooldown system prevents audio overload
・Minimal performance impact during combat