How would you make a check in the damage function of fight.c to see if damage is from a spell cast from do_cast?
I thought the below would work, but it doesn't.
SKILLTYPE * skill;
mod = abs( mod );
if ( IS_VALID_SN( mod ) && ( skill = skill_table[mod] ) != NULL && skill->type == SKILL_SPELL )