mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 14:47:40 +00:00
DiD utils: use 1.13 syntax
It's now possible to have this logic as part of [role] [ci skip] (cherry-picked from commit 440efd25600245ce5a69561312494ff2cdd8332b)
This commit is contained in:
parent
b6c7dd1635
commit
f25243f0a3
@ -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…
x
Reference in New Issue
Block a user