SoF - S6 - fix #6146 and related side-storing issue causing auto-defeat (#6181)

This commit is contained in:
doofus-01 2021-10-09 17:31:57 -07:00 committed by GitHub
parent 374104d7c6
commit 57078c4eb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,7 @@
team_name=dwarves
user_team_name= _ "Dwarves"
{FLAG_VARIANT knalgan}
defeat_condition=no_units_left
[/side]
# Rugnur starts with all villages within the captured Shorbear keep.
@ -609,6 +610,10 @@
id=Rugnur
x,y=36,3
[/filter]
# we cannot just put this in the victory event because units are stored and rune variables are not cleared
{SOF_CLEAR_RUNE_VARS 1}
[if]
[have_unit]
id=Alanin
@ -668,6 +673,8 @@
[event]
name=enemies defeated
{SOF_CLEAR_RUNE_VARS 1}
[endlevel]
result=victory
bonus=yes
@ -678,8 +685,6 @@
[event]
name=victory
{SOF_CLEAR_RUNE_VARS 1}
# This [if] is used only in the case the player happened to defeat all
# the enemy leaders and didn't move Alanin to the signpost
[if]