send_event_to_labelled 43971, 84
on_event 84
#99 66, 32768, 1
end_event 6844
This forces a mage cast dispel magic.
I wonder what 66 stands for, dispel magic seems to be 56.
And I wonder what happens if to set it to an enemy infantry (provided that the infantry is set 'dispel magic' in the list of spells). This might work.
Also, there are similar events 81, 82 that trigger the following:
on_event 82
test_unit_flag2 2048
iffalse
#9b 0, 0
iffalse
#99 66, 512, 3
endif
endif
end_event 6844
on_event 81
test_unit_flag2 2048
iffalse
#9b 0, 0
iffalse
#99 66, 1024, 3
endif
endif
end_event 6844
#9b might be amount of mana check, and the events occur when a mage is attacked by spells or magical items. Or maybe this involves casting 'dispel magic' on friendly troops that might endure magic attacks.