From 7e61256231cbbd4cbc0f0320f6a9624a32afa76f Mon Sep 17 00:00:00 2001
From: johns <>
Date: Fri, 8 Mar 2002 02:06:05 +0000
Subject: [PATCH] Unit that can't attack can not rescue.

---
 src/unit/unit.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/unit/unit.cpp b/src/unit/unit.cpp
index 4ac93255a..83714717d 100644
--- a/src/unit/unit.cpp
+++ b/src/unit/unit.cpp
@@ -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 ) {