mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 16:15:40 +00:00
Fixed some backwards logic in CREATE_ADVISOR
This commit is contained in:
parent
dd12b0f52e
commit
8ec9792ead
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user