Im having problems with trying to place a spell on every unit in a unit group. Heres the trigger:
Basically, when I cast my spell, which happens to be an aoe based on Silence, I want the units in that aoe to have doom placed on them. What happens is that the trigger fires for all the units in the group (determined by the text "cycle") but only 1 unit ends up getting doomed. I'm thinking either the dummy units all decide to doom 1 unit for some reason, or theres something preventing the other units from being doomed as well. Does anyone have an idea?
Trigger:
- Spectral Phantasm Silence
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Item Silence (WORD)
- Actions
- Set LocalPoint = (Target point of ability being cast)
- Set Temp_Group = (Units within 250.00 of (LocalPoint offset by (0.00, 0.00)))
- Unit Group - Pick every unit in Temp_Group and do (Actions)
- Loop - Actions
- Unit - Create 1 Dummy Doom for (Owner of (Casting unit)) at (Position of (Picked unit)) facing Default building facing degrees
- Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Neutral Pit Lord - Doom (Picked unit)
- Game - Display to (All players) the text: cycle
- Loop - Actions
- Custom script: call DestroyGroup( udg_Temp_Group)
- Custom script: call RemoveLocation (udg_LocalPoint)
- Events
Basically, when I cast my spell, which happens to be an aoe based on Silence, I want the units in that aoe to have doom placed on them. What happens is that the trigger fires for all the units in the group (determined by the text "cycle") but only 1 unit ends up getting doomed. I'm thinking either the dummy units all decide to doom 1 unit for some reason, or theres something preventing the other units from being doomed as well. Does anyone have an idea?