On my map I found a problem with people being able to blink onto cliffs. I am trying to resolve this by doing terrain checks with all blink abilities. This is what I have but does not work.
Any help is appreciated. Thanks.
Code:
Terrian
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Shadow Step
Actions
Set terrianPoint[0] = (Target point of ability being cast)
Set terrianPoint[1] = (Position of (Casting unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at terrainCheck[0]) Equal to Icecrown Glacier - Snow Cliff
Then - Actions
Unit - Move (Casting unit) instantly to terrainCheck[1]
Else - Actions
Custom script: call RemoveLocation (udg_terrianPoint[0])
Custom script: call RemoveLocation (udg_terrianPoint[1])
Any help is appreciated. Thanks.