I've been trying to change the TechSpaceMineDetonate ability so that it is not activated by scout class ships, but I'm having trouble seeing how to do it. I've looked at the entity file and it doesn't look like there is a way to do this.
Am I missing something?
What you're missing is the impossibility of having ONLY Scout Frigates being unable to detonate mines.
Target filters specify by entity type, not role type. Basically, "Frigates" (which are all ships buildable in the frigate&cruiser menus) and "Capital Ships" (all capital ships) are what is used for target filters.
Which means you either have it so that mines are only detonated by Capital ships (which is pretty lame IMO), or leave them as is.
The alternative is to tweak the Scout Ships' ability files so that they because invulnerable; but that's also pretty lame IMO.