You can: however its gonna be time consuming. There are lots of ways it can be done, this just my view:
- a preset of data in a sort of trigger-database. you can save all possible spells and all possible items that affect spells into variables, then simple control the damage yourself [THIS WOULD COUNT AS SPELL DAMAGE]
- then you can use a gui damage detection system, to display in text how much damage is being dealt and in what fashion. since you already have a preset of spell damage, anything that isn't spell damage is attack damage.