Hello
I'm doing a WoW Emulator and I'm working on Mage spells right now
I have problem with adding the chill(slow) effect to Blizzard I have such trigger:
Blizzard Gain
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Blizzard [Mage]
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Picked unit) Equal to (Target unit of ability being cast))) and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to Spell_Blizzard_UnitGroup
Unit - Set (Picked unit) movement speed to 0.35
Animation - Change (Picked unit)'s vertex coloring to (50.00%, 50.00%, 100.00%) with 0.00% transparency
Wait 1.00 seconds
<<There's an if here which reruns the trigger if the caster still casts the Blizzard spell>>
End of trigger
My problem is with the red colored part part. As you can see the trigger is supposed to run if blizzard is cast and runs as long as blizzard is cast (works) and then find every unit on the map which has the Blizzard buff which the spell gives (Here I don't know, cuz it's the first time I work with AoE spell buff and in the game, the units actually have the buff on them, but no units seem to be picked by this trigger) and then there are some actions done for these units.
So my problem is : How do I pick each and every unit that has a certain buff on them? Cuz this doesn't work
If this is of any help the blizzard spell has :
Stat - Buffs = Blizzard [Mage]
Duration - Hero = 1.50
Duration - Normal = 2.50
I see no reasons to give any other spell details.
I'm doing a WoW Emulator and I'm working on Mage spells right now
I have problem with adding the chill(slow) effect to Blizzard I have such trigger:
Blizzard Gain
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Blizzard [Mage]
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Picked unit) Equal to (Target unit of ability being cast))) and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to Spell_Blizzard_UnitGroup
Unit - Set (Picked unit) movement speed to 0.35
Animation - Change (Picked unit)'s vertex coloring to (50.00%, 50.00%, 100.00%) with 0.00% transparency
Wait 1.00 seconds
<<There's an if here which reruns the trigger if the caster still casts the Blizzard spell>>
End of trigger
My problem is with the red colored part part. As you can see the trigger is supposed to run if blizzard is cast and runs as long as blizzard is cast (works) and then find every unit on the map which has the Blizzard buff which the spell gives (Here I don't know, cuz it's the first time I work with AoE spell buff and in the game, the units actually have the buff on them, but no units seem to be picked by this trigger) and then there are some actions done for these units.
So my problem is : How do I pick each and every unit that has a certain buff on them? Cuz this doesn't work
If this is of any help the blizzard spell has :
Stat - Buffs = Blizzard [Mage]
Duration - Hero = 1.50
Duration - Normal = 2.50
I see no reasons to give any other spell details.