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:
parent
403f70d954
commit
dae4df3bef
1 changed files with 16 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue