Fixed the possibility of a missplaces dialogue when a bridge was broken

This commit is contained in:
Descacharrado 2022-01-10 14:42:47 +01:00 committed by Wedge009
parent 939a1b1a70
commit 68453aa18f
2 changed files with 32 additions and 8 deletions

View file

@ -36,6 +36,7 @@
* S08: The appearance of Naga is now smoother (issue #6140)
* S19: The trolls gold is automatically collected upon victory if not already obtained (issue #6141)
* S19: Avoid units spawning over chasms
* S22: Fixed the possibility of a missplaced dialogue when a bridge was broken (issue #6376)
* Remove time-runs-out lose condition for final scenario (issue #6109)
* Under the Burning Suns
* Avoid a few possibilities where the Dust Devil could speak (issue #4892)

View file

@ -1282,14 +1282,37 @@
[redraw]
[/redraw]
[message]
side=1
[filter_location]
x,y=42,30
radius=8
[/filter_location]
message= _ "Our advance is thwarted, that monster has destroyed the bridge!"
[/message]
# Test for units to be north of the bridge in that moment. If there are none, it does not make sense
# to say their advance is thwarted, but it does make sense to say their retreat is.
[if]
[have_unit]
side=1
[filter_location]
x,y=43,24
radius=6
[/filter_location]
[/have_unit]
[then]
[message]
side=1
[filter_location]
x,y=42,30
radius=8
[/filter_location]
message= _ "Our advance is thwarted, that monster has destroyed the bridge!"
[/message]
[/then]
[else]
[message]
side=1
[filter_location]
x,y=42,30
radius=8
[/filter_location]
message= _ "Our retreat is thwarted, that monster has destroyed the bridge!"
[/message]
[/else]
[/if]
[delay]
time=500