Mittsies
New Member
- Reaction score
- 24
Basically it's for a tower-defense. When this unit is attacked it casts mirror image as a result. Once it casts mirror image it's supposed to move all the units by selecting all of them and adding them to a unit group that periodically moves creeps.
I have a feeling it's a mirror-image-specific problem I'm having. Any ideas?
Trigger:
- Deviate Owl Cast
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Mirror Image (Deviate Owl)
- Actions
- Set mirrorimagepos = (Position of (Casting unit))
- Set mirrorimagegroup = (Units within 600.00 of mirrorimagepos matching ((Level of FLAG_HasMirrorImage for (Matching unit)) Equal to 1))
- Unit Group - Pick every unit in mirrorimagegroup and do (Actions)
- Loop - Actions
- Unit Group - Add (Picked unit) to CreepBlockedGroup
- Loop - Actions
- Custom script: call DestroyGroup (udg_mirrorimagegroup)
- Custom script: call RemoveLocation (udg_mirrorimagepos)
- Events
I have a feeling it's a mirror-image-specific problem I'm having. Any ideas?