Let me explain first what is trigger supposed to do. Pit of Pain is a spell based on flamestrike. It insta-damages an area and creates a fog. If enemies are in the fog (range of 600 of the created unit) then they have a damage reduction buff. If they quit the fog, buff is removed.. But for some reason it doesn't even cast a cripple buff on the units (checked if the dummy can cast the spell). Also the dummy that is created has a fog model, but after 10sec of expiration timer the fog doesn't disappear...
-
Pit of Pain
-
Events
- Unit - A unit starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Pit of Pain
-
Actions
- Set Temppoint = (Target point of ability being cast)
- Set Tempplayer = (Triggering player)
- Set Tempunit = (Last created unit)
- Set Target = (Picked unit)
- Wait 0.66 game-time seconds
- Unit - Create 1 Dummy fog for Tempplayer at Temppoint facing default building facing degrees
- Custom script: call RemoveLocation(udg_Temppoint)
- Unit - Add Pit of Pain (damage reduce) to Tempunit
- Unit - Add a 10.00 second generic expiration timer to Tempunit
- Set Range = 600.00
- Set Temppoint2 = (Position of Tempunit)
- Set Tempgroup = (Units within Range of Temppoint2)
-
Unit Group - Pick every unit in Tempgroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Target belongs to an enemy of Tempplayer) Equal to True
- (Target is alive) Equal to True
-
Then - Actions
- Unit - Order Tempunit to Undead Necromancer: Cripple Target
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_Tempgroup)
- Set Range2 = 50.00
- Set Tempgroup2 = (Units within Range2 of Temppoint2)
-
Unit Group - Pick every unit in Tempgroup2 and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Target has buff Pit of Pain buff ) Equal to True
-
Then - Actions
- Unit - Remove Pit of Pain buff buff from Target
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_Tempgroup2)
- Custom script: call RemoveLocation(udg_Temppoint2)
-
Events