Auto-translated
Has anyone tried changing the area of effect of spells during battle? For example, allowing the casting of Antimagic or Bless on enemy units. As far as I understand, this cannot be done with standard commands. I tried to find it using ArtMoney, perhaps some byte controls the target of the spell, but I haven't had any success yet. I found addresses that reference spell descriptions, but I don't understand what's there and how it works. Changes in those areas don't seem to affect anything, and it's also unclear whether to look up or down from the pointer.
In general, I want to make it so that Antimagic can be cast when a specific artifact is present, with the option to target only allies, only enemies, everyone, or just one specified unit. I've basically written the code for it.
But:
- It's necessary to select someone first, after which the choice appears.
- The dwarf's resistance is not taken into account.
- The resistance of creatures (dragons) to magic is also not taken into account.
- After casting on allies, it's no longer possible to cast Antimagic on them again - either you need to cast a spell removal, or wait for the effect to end.
For now, the only option is to add the ability to cast Antimagic to the spell removal (again, with the option to choose), but that doesn't seem very good.
And another question - is it possible to remove a selectively active spell (I don't like the BMx16:Gy1/0/0 option because the icon remains)? Or should I remember what spells are active and their duration, remove them all, and then restore the ones that need to be kept?
PS: This is for WOG 3.58f (not TE)