TSG S04 Fix bug: No bodyguards AT ALL!!!

Bad loop logic. Tested with Ethiliel in the middle of the lake and .. oopsie!
This commit is contained in:
Gregory A Lundberg 2016-08-24 01:15:00 -05:00
parent 403f70d954
commit dae4df3bef

View file

@ -380,10 +380,6 @@
[while]
[variable]
name=number
less_than=$bodyguard_loc.length
[/variable]
[variable]
name=number
#ifdef EASY
less_than=4
#endif
@ -399,15 +395,23 @@
{VARIABLE guard_x $ethiliel_loc.x}
{VARIABLE guard_y $ethiliel_loc.y}
[set_variable]
name=guard_x
value=$bodyguard_loc[$number].x
[/set_variable]
[if]
[variable]
name=number
less_than=$bodyguard_loc.length
[/variable]
[then]
[set_variable]
name=guard_x
value=$bodyguard_loc[$number].x
[/set_variable]
[set_variable]
name=guard_y
value=$bodyguard_loc[$number].y
[/set_variable]
[set_variable]
name=guard_y
value=$bodyguard_loc[$number].y
[/set_variable]
[/then]
[/if]
[unit]
role=Elvish Bodyguard