mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 18:35:39 +00:00
Fixed duplicate id's of the elvish bodyguards.
This commit is contained in:
parent
950cdb6b90
commit
2b6787c829
@ -364,24 +364,25 @@
|
||||
#endif
|
||||
[/variable]
|
||||
[do]
|
||||
{VARIABLE guard_x 0}
|
||||
{VARIABLE guard_y 0}
|
||||
# fallback coordinates, in case no nearby vacant forest is found
|
||||
{VARIABLE guard_x $ethiliel_loc.x}
|
||||
{VARIABLE guard_y $ethiliel_loc.y}
|
||||
|
||||
[set_variable]
|
||||
name=guard_x
|
||||
to_variable=bodyguard_loc[$number].x
|
||||
value=$bodyguard_loc[$number].x
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=guard_y
|
||||
to_variable=bodyguard_loc[$number].y
|
||||
value=$bodyguard_loc[$number].y
|
||||
[/set_variable]
|
||||
|
||||
[unit]
|
||||
id=Elvish Bodyguard
|
||||
role=Elvish Bodyguard
|
||||
name= _ "Elvish Bodyguard"
|
||||
type=Elvish Ranger
|
||||
side=1
|
||||
name=Elvish Bodyguard
|
||||
x,y=$guard_x,$guard_y
|
||||
random_traits=yes
|
||||
[modifications]
|
||||
@ -394,18 +395,10 @@
|
||||
[/do]
|
||||
[/while]
|
||||
|
||||
[clear_variable]
|
||||
name=bodyguard_loc
|
||||
[/clear_variable]
|
||||
[clear_variable]
|
||||
name=ethiliel_loc
|
||||
[/clear_variable]
|
||||
[clear_variable]
|
||||
name=number
|
||||
[/clear_variable]
|
||||
{CLEAR_VARIABLE bodyguard_loc,ethiliel_loc,number}
|
||||
|
||||
[message]
|
||||
speaker=Elvish Bodyguard
|
||||
role=Elvish Bodyguard
|
||||
message= _ "We stand ready, my lady, to protect you! We shall lead these men of Wesnoth into the fray!"
|
||||
[/message]
|
||||
[/event]
|
||||
|
@ -135,7 +135,7 @@
|
||||
[store_unit]
|
||||
[filter]
|
||||
side=1
|
||||
id=Elvish Bodyguard
|
||||
role=Elvish Bodyguard
|
||||
[/filter]
|
||||
|
||||
kill=yes
|
||||
|
Loading…
x
Reference in New Issue
Block a user