CclGetNumUnitsAt now gets units only if they are alive
This commit is contained in:
parent
2139f049d9
commit
b34799e07c
1 changed files with 3 additions and 1 deletions
|
@ -186,7 +186,9 @@ static int CclGetNumUnitsAt(lua_State *l)
|
|||
|
||||
// Check the player
|
||||
if (plynr == -1 || plynr == unit.Player->Index) {
|
||||
++s;
|
||||
if (unit.IsAlive()) {
|
||||
++s;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue