R
Ralle_Janis
Guest
Hello, i need help to create an aura that makes the enemies have a % chance to miss they're attacks, how do i do that?
Untitled Trigger 001
Events
Time - Every 2.00 seconds of game time
Conditions
[B]Your Conditions here will be about learnbing heroes asigned heroes ect...[/B]
Actions
Unit Group - Pick every unit in (Units in (Region centered at (Position of [B]Your Unit Here[/B]) with size (1000.00, 1000.00))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Picked unit)) is an enemy of (Owner of [B]Your Unit Here[/B])) Equal to True
((Picked unit) is dead) Equal to False
Then - Actions
Unit - Create 1 Curse Caster for (Owner of [B]Your Unit Here[/B]) at (Position of (Picked unit)) facing Default building facing degrees
Unit - Order (Last created unit) to Undead Banshee - Curse (Picked unit)
Else - Actions
Wait 1.00 seconds//if u dont wait they cant cast spell
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Owner of [B]Your Unit Here[/B])) and do (Actions)
Loop - Actions
If ((Unit-type of (Picked unit)) Equal to Curse Caster) then do (Unit - Remove (Picked unit) from the game) else do (Do nothing)