Use [filter_condition] in second part of LIMIT_CONTEMPORANEOUS_RECRUITS

This commit is contained in:
Charles Dang 2015-01-06 19:05:31 +11:00
parent 10023d79a6
commit 75e7d41425

View file

@ -20,7 +20,6 @@
[event]
name=side turn
first_time_only=no
[filter_condition]
# Note: we cannot simply check if {SIDES} contains $side_number,
# because that would break for side numbers >9 ("12" would contain
@ -61,26 +60,22 @@
[event]
name=recruit
first_time_only=no
[filter]
side={SIDES}
type={TYPE}
[/filter]
[if]
[filter_condition]
[have_unit]
side=$side_number
type={TYPE}
count="{LIMIT_NUMBER}-99999"
[/have_unit]
[/filter_condition]
[then]
[disallow_recruit]
side=$side_number
type={TYPE}
[/disallow_recruit]
[/then]
[/if]
[disallow_recruit]
side=$side_number
type={TYPE}
[/disallow_recruit]
[/event]
#enddef