hi
i want to do a spell that roots all enemies in target area (200AoE)
i did it like that:
unit starts the effect of an ability
equal to roots
pick every unit in 200 of target point of ability being cast
create 1 ROOT_DUMMY at position of picked unit
add a 3 sec expiration timer to last created unit
order last created unit to STUN_SKILL picked unit
ofc id didnt removed leaks, but thats not the problem, the problem is that i create one dummy for each unit in the AoE, thats not that good, isnt it?
i want to do a spell that roots all enemies in target area (200AoE)
i did it like that:
unit starts the effect of an ability
equal to roots
pick every unit in 200 of target point of ability being cast
create 1 ROOT_DUMMY at position of picked unit
add a 3 sec expiration timer to last created unit
order last created unit to STUN_SKILL picked unit
ofc id didnt removed leaks, but thats not the problem, the problem is that i create one dummy for each unit in the AoE, thats not that good, isnt it?