I need a spell that will only affect dragons and do nothing for everything else, however, It's been years since I've worked with the CS Scritping language, and dragons weren't a thing with Morrowind, so I just need something like this snippet of psuedocode
SpellOnHitEvent()
{
if(target.isDragon = true)
{
target.kill;
}
}