Attack units should use VisibleAsGoal, attack range may be more than visible range

This commit is contained in:
wizzard 2004-01-31 20:19:22 +00:00
parent 9def7c9422
commit d7648ab5ac

View file

@ -781,7 +781,7 @@ global Unit* AttackUnitsInDistance(Unit* unit, int range)
for (i = 0; i < n; ++i) {
dest = table[i];
if (!UnitVisibleOnMap(dest, unit->Player)) {
if (!UnitVisibleAsGoal(dest, unit->Player)) {
continue;
}