Fixed some backwards logic in CREATE_ADVISOR

This commit is contained in:
Charles Dang 2014-12-18 22:47:32 +11:00
parent dd12b0f52e
commit 8ec9792ead

View File

@ -46,14 +46,13 @@
role=advisor
[/recall]
[if]
# check if that worked, if not make another unit the advisor
[have_unit]
role=advisor
[/have_unit]
# If that didn't work, make another unit the advisor
[not]
[have_unit]
role=advisor
[/have_unit]
[/not]
[then]
# do nothing
[/then]
[else]
[role]
role=advisor
type=Spectre,Nightgaunt,Wraith,Shadow,Ghost
@ -63,13 +62,12 @@
[/recall]
[if]
# If player has no such units on the recall list, make a new ghost
[have_unit]
role=advisor
[/have_unit]
[not]
[have_unit]
role=advisor
[/have_unit]
[/not]
[then]
# do nothing
[/then]
[else]
[store_unit]
# store to get location
[filter]
@ -86,9 +84,9 @@
role=advisor
[/unit]
{CLEAR_VARIABLE tempStore}
[/else]
[/then]
[/if]
[/else]
[/then]
[/if]
#enddef