Fixed the possibility of a missplaces dialogue when a bridge was broken
(cherry picked from commit 68453aa18f
)
This commit is contained in:
parent
afdd6083ce
commit
48077331e4
2 changed files with 32 additions and 8 deletions
|
@ -4,6 +4,7 @@
|
|||
### Campaigns
|
||||
* Delfador’s Memoirs
|
||||
* S14: Smoother appearance of enemies and added dialogue (#6176)
|
||||
* S22: Fixed the possibility of a missplaced dialogue when a bridge was broken (issue #6376)
|
||||
* Under the Burning Suns
|
||||
* S08: Kromph and the Dust devil now trigger a critical event (issue #6211)
|
||||
### Editor
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue