NR S2: fix filters for Micro AIs

and allow L2 recruits if the dwarves are under attack in late game.

[ci skip]
This commit is contained in:
Severin Glöckner 2018-05-15 15:34:47 +02:00
parent 2d600d10dc
commit ddaf9f5a87

View file

@ -768,7 +768,7 @@
[gold]
side=4
amount=200
amount=220
[/gold]
[modify_side]
[filter_side]
@ -776,6 +776,22 @@
[/filter_side]
income=12
[/modify_side]
[if]
[variable]
name=turn_unmer
greater_than=30
[/variable]
[then]
[allow_recruit]
side=4
type=Dwarvish Steelclad,Dwarvish Stalwart,Dwarvish Pathfinder
[/allow_recruit]
[disallow_recruit]
side=4
type=Dwarvish Fighter,Dwarvish Guardsman,Dwarvish Scout
[/disallow_recruit]
[/then]
[/if]
[/event]
# This unit should only defend this location and not join the counterattack
@ -800,7 +816,9 @@
ai_type=return_guardian
action=add
[filter]
upkeep=loyal
[filter_wml]
upkeep=loyal
[/filter_wml]
type=Dwarvish Fighter
[/filter]
return_x,return_y=27,28
@ -817,7 +835,9 @@
ai_type=return_guardian
action=add
[filter]
upkeep=loyal
[filter_wml]
upkeep=loyal
[/filter_wml]
type=Skeleton Archer
[/filter]
return_x,return_y=24,2