I have a spell which pushes enemy units away by setting their X/Y. However, sometimes they get pushed into trees/cliffs and become stuck. I fixed the tree part by destroying any nearby trees at the X/Y location.
what's the most common way to check if a certain X/Y is not desirable to move a unit too? I can't seem to find the condition "loc(X/Y) == unwalkable"
thx
what's the most common way to check if a certain X/Y is not desirable to move a unit too? I can't seem to find the condition "loc(X/Y) == unwalkable"
thx