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:
Severin Glöckner 2018-07-15 19:58:22 +02:00
parent 9e286dbb53
commit 5fb9a65be7

View file

@ -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