Unit that can't attack can not rescue.
This commit is contained in:
parent
2a467f9872
commit
7e61256231
1 changed files with 2 additions and 1 deletions
|
@ -1518,7 +1518,8 @@ global void RescueUnits(void)
|
|||
// Look if human near the unit.
|
||||
//
|
||||
for( i=0; i<n; ++i ) {
|
||||
if( around[i]->Player->Type==PlayerPerson ) {
|
||||
if( around[i]->Type->CanAttack &&
|
||||
around[i]->Player->Type==PlayerPerson ) {
|
||||
ChangeUnitOwner(unit,unit->Player,around[i]->Player);
|
||||
// FIXME: more races?
|
||||
if( unit->Player->Race==PlayerRaceHuman ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue