I have made a script that does stuff when hit by a hostile spell. It works all gravy, however I need to alter it so that it only fires when its a hostile spell within the spell category (so no poisons or diseases etc). Can anyone help me out with this? I am gonig to take a look at the wiki too, but its always good to ask teh community too

Spoiler
Scriptname magicfeedback extends ActiveMagicEffect actor property selfRef auto hiddenEVENT OnEffectStart(Actor Target, Actor Caster) selfRef = caster endEVENTEVENT onHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) if (akSource as Spell) if (akSource as spell).isHostile() Do stuff endif endifendEVENT

Mighty frustrating, I am not that keen to be editing all these spells, potentialy making my mod compeltly incompatible with any other spell mod out there =(
)