I just cant figure out what is wrong with this trigger. it wont kill the unit.
any help would be appreciated. thanks.
Trigger:
- Lethal Tiles
- Events
- Time - Every 0.01 seconds of game time
- Conditions
- Actions
- Set Pathing_Lethal_RG = (Playable map area)
- Set Pathing_Lethal_UG = (Units in Pathing_Lethal_RG)
- Unit Group - Pick every unit in Pathing_Lethal_UG and do (Actions)
- Loop - Actions
- Set Pathing_Lethal_Unit_PT = (Position of (Picked unit))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Or - Any (Conditions) are true
- Conditions
- (Terrain type at Pathing_Lethal_Unit_PT) Equal to Dungeon - Lava
- (Terrain type at Pathing_Lethal_Unit_PT) Equal to Cityscape - Grass
- (Terrain type at Pathing_Lethal_Unit_PT) Equal to Icecrown Glacier - Snow
- Conditions
- Or - Any (Conditions) are true
- Then - Actions
- Unit - Kill (Picked unit)
- Else - Actions
- Do nothing
- If - Conditions
- Custom script: call RemoveLocation (udg_Pathing_Lethal_Unit_PT)
- Loop - Actions
- Custom script: call RemoveRect (udg_Pathing_Lethal_RG)
- Custom script: call DestroyGroup (udg_Pathing_Lethal_UG)
- Events
any help would be appreciated. thanks.