I want to make spellcasters more useful by having them gain energy through dealing damage. How do I set this up through the data editor as an ability?
Go into the Data Editor, select your spellcaster. Click on the field "Energy Leeched By Damage Dealt" and select a value. Each time your unit does damage, it gains that much energy.