Attack units should use VisibleAsGoal, attack range may be more than visible range
This commit is contained in:
parent
9def7c9422
commit
d7648ab5ac
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue