EI: s10 fix owaec being able to enter the sanctuary (#8850)

Fixes #8843
This commit is contained in:
Dalas121 2024-05-05 07:13:54 -07:00 committed by GitHub
parent f89d18ec37
commit 9d3e2e82a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -923,7 +923,6 @@ The darkness between worlds opens its maw."
[/event]
# Owaec refuses to enter the outer lock
# this is good for flavor, but also helps with balance. Vanguard + Baneblade would be way too strong
[event]
name=enter hex
first_time_only=no
@ -938,7 +937,30 @@ The darkness between worlds opens its maw."
speaker=Owaec
message= _ "I will not aid in this evil quest."
[/message]
{MOVE_UNIT (id=Owaec) $x2 $y2}
# prevent blocking Owaec to force him into the sanctuary
[if]
[have_unit]
x,y=$x2,$y2
[/have_unit]
[then]
[store_unit]
[filter]
x,y=$x2,$y2
[/filter]
variable=stored_forcepush
kill=yes
[/store_unit]
{MOVE_UNIT (id=Owaec) $x2 $y2}
[unstore_unit]
variable=stored_forcepush
find_vacant=yes
[/unstore_unit]
{CLEAR_VARIABLE stored_forcepush}
[/then]
[else]
{MOVE_UNIT (id=Owaec) $x2 $y2}
[/else]
[/if]
[/event]
# Dacyn cycles the outer lock