URL:
<http://gna.org/bugs/?13295>
Summary: enemy_units contains black, inactive units in
2p_Caves_of_the_Basilisk
Project: Battle for Wesnoth
Submitted by: benetnash
Submitted on: Monday 03/30/2009 at 14:21
Category: Bug
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: Artificial Intelligence
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.6a
Operating System: linux 2.6.28
_______________________________________________________
Details:
My simple custom AI script ,,move unit toward the closest enemy''
choose(my_moves.moves, 'my_move', -1 * distance_between(my_move.dst,
choose(enemy_units, 'enemy', -1 * distance_between(enemy.loc,
my_move.dst)).loc))
doesn't work on Caves of the Basilisk because of petrified units placed on
the map. enemy_units musn't contain unist that are inactive.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?13295>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs