Heya, this is the spell I want:
A unit (unit1)casts a spell which lasts for a certain amount of time, if another unit (unit2) casts a harmful spell on this unit it will be reflected towards the casting unit.
Only some of the spells should be reflected, not all of them. (not melee abilities for example, only magic spells)
By reflected, I mean that the exact same spell that unit2 cast should be cast again from the location of unit1 against unit2. Unit1 should not be damaged at all from this spell.
Missiles/special effects should work properly btw.
I'd prefer a GUI answer, I only know the very basics of JASS.
Thanks!
+ rep for any helpfull answers, thanks!
A unit (unit1)casts a spell which lasts for a certain amount of time, if another unit (unit2) casts a harmful spell on this unit it will be reflected towards the casting unit.
Only some of the spells should be reflected, not all of them. (not melee abilities for example, only magic spells)
By reflected, I mean that the exact same spell that unit2 cast should be cast again from the location of unit1 against unit2. Unit1 should not be damaged at all from this spell.
Missiles/special effects should work properly btw.
I'd prefer a GUI answer, I only know the very basics of JASS.
Thanks!
+ rep for any helpfull answers, thanks!