Hi everyone, its me again.
Now I want to make a trigger wich damages undead when the sun is up and they are not on blight, but it does it even when the unit stands on blight, any thoughts?
Now I want to make a trigger wich damages undead when the sun is up and they are not on blight, but it does it even when the unit stands on blight, any thoughts?
Trigger:
- Nap
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is Undead) Equal to True)) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked unit) has buff Aura of Blight) Equal to False
- ((In-game time of day) Less than 19.00) or ((In-game time of day) Greater than 7.00)
- Then - Actions
- Unit - Cause (Random unit from (Units of type hung (Level 1))) to damage (Picked unit), dealing 10.00 damage of attack type Spells and damage type Normal
- Game - Display to (All players) the text: neg
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is Undead) Equal to True)) and do (Actions)
- Events