Special-case a single unit level 3 list

This commit is contained in:
Alexander van Gessel 2009-10-06 21:33:58 +01:00
parent ab1c48076c
commit a962f1e276

View file

@ -79,17 +79,22 @@
[/filter]
[/store_unit]
[if]
[variable]
name=l3_store.length
numerical_equals=0
[/variable]
[then]
[switch]
variable=l3_store.length
[case]
value=0
[set_variable]
name=left_behind
value= _ "some experienced warriors" # wmllint: ignore
[/set_variable]
[/then]
[/case]
[case]
value=1
[set_variable]
name=left_behind
format=$l3_store[0].name
[/set_variable]
[/case]
[else]
{VARIABLE l3_length $l3_store.length}
{VARIABLE_OP l3_length add -1}
@ -122,7 +127,7 @@
{NEXT i}
{CLEAR_VARIABLE l3_length}
[/else]
[/if]
[/switch]
[/event]
[side]