100% agree with streetpunk in last post. If I were cynical I should ask TheLordOfChaos201 to read 1st line of his post and refer it to himself
ok calm down, back to topic
@streetpunk, your 1st option
what with flameStrike, shockwave, and others point-based spells, there is no "target unit of ability being cast"
2nd option
as far as I know buffs won't applied immediatelly and also not dissapear immediately
ok and 3rd options /no triggers/
what I suggest is just give to all unit that suppose to have "magic attack type" in OE instead of "magic" --> "spells". Then those unit will be able to attack all units (normal, magic immune and ethernal->but wont damage ethernal).
Editing "Combat Damage Bonus Table - Spells" is optional. But be aware it will affect not only "spell attack type" in OE but also
spells in OE (flame strike, shockwave etc)
In "Game Interface" you can edit 3 fields I show and also field I didnt show with Name - call it for example 'deepMagic attack type'
blizzard mess up with names a little bit thats why it is
WorldEdit Value
JASS Value
Equivalent
Spells
ATTACK_TYPE_NORMAL
Spells
that's why you should look up in Game Interface for DAMAGETIP_NORMAL
btw , in triggers you can apply excactly the same type of damage if you use: Spells, Normal
or in jass
ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL
this is 1 time edit, then you just should remember to give in OE units attack-type "spells" if you want them to attack everything