Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NR S05a_01 The Pursuit - Fixed units getting stuck in the wall before the spider chamber. #6610

Merged
merged 2 commits into from
Apr 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
### Campaigns
* Descent into Darkness
* S08: Prevent Spectral Servant from picking up the book (issue #6576)
* Northern Rebirth
* S05a_01: Solve units getting stuck in the wall before the spider chamber (issue #6607)
### Editor
### Multiplayer
### Lua API
Expand Down
38 changes: 36 additions & 2 deletions data/campaigns/Northern_Rebirth/scenarios/05a_01_The_Pursuit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1687,8 +1687,8 @@
name=moveto
[filter]
side=1
x=10-18
y=1-6
x=10-18,11-17
y=1-6,7
[/filter]

[scroll_to]
Expand Down Expand Up @@ -1723,6 +1723,40 @@
terrain=Xu
[/terrain]

# When cutting off the exit, test for units on the wall, if there are units on the wall, teleport them back

[if]
[have_unit]
side=1
x=9,7
[/have_unit]
[then]
[teleport]
[filter]
x,y=9,7
[/filter]
x,y=10,7
check_passability=yes
[/teleport]
[/then]
[/if]

[if]
[have_unit]
side=1
x=10,7
[/have_unit]
[then]
[teleport]
[filter]
x,y=10,7
[/filter]
x,y=9,7
check_passability=yes
[/teleport]
[/then]
[/if]

[redraw][/redraw]

[message]
Expand Down