DiD utils: use 1.13 syntax
It's now possible to have this logic as part of [role] [ci skip]
This commit is contained in:
parent
9e286dbb53
commit
5fb9a65be7
1 changed files with 16 additions and 25 deletions
|
@ -29,39 +29,30 @@
|
|||
search_recall_list=yes
|
||||
[/have_unit]
|
||||
[then]
|
||||
# Recall an advisor if we have one to do so
|
||||
# Recall an advisor if we have one
|
||||
[recall]
|
||||
role=advisor
|
||||
[/recall]
|
||||
[/then]
|
||||
[elseif]
|
||||
[else]
|
||||
# Else, make a new advisor from a ghost unit
|
||||
[have_unit]
|
||||
[role]
|
||||
role=advisor
|
||||
side=1
|
||||
type=Spectre,Nightgaunt,Wraith,Shadow,Ghost
|
||||
search_recall_list=yes
|
||||
[/have_unit]
|
||||
[then]
|
||||
[role]
|
||||
role=advisor
|
||||
side=1
|
||||
type=Spectre,Nightgaunt,Wraith,Shadow,Ghost
|
||||
[/role]
|
||||
|
||||
[recall]
|
||||
role=advisor
|
||||
[/recall]
|
||||
[/then]
|
||||
[/elseif]
|
||||
[else]
|
||||
# If that fails too, make a brand new ghost advisor
|
||||
[unit]
|
||||
type=Ghost
|
||||
side=1
|
||||
role=advisor
|
||||
animate=yes
|
||||
placement=leader
|
||||
[/unit]
|
||||
[auto_recall][/auto_recall]
|
||||
[else]
|
||||
# If that fails too, make a brand new ghost advisor
|
||||
[unit]
|
||||
type=Ghost
|
||||
side=1
|
||||
role=advisor
|
||||
animate=yes
|
||||
placement=leader
|
||||
[/unit]
|
||||
[/else]
|
||||
[/role]
|
||||
[/else]
|
||||
[/if]
|
||||
#enddef
|
||||
|
|
Loading…
Add table
Reference in a new issue