From 917ef457a36c28daa2c2f813ebc9cb0b3f1cbc81 Mon Sep 17 00:00:00 2001
From: cybermind <iddqd_mail@mail.ru>
Date: Sun, 15 Mar 2015 23:03:59 +0500
Subject: [PATCH] [-] Transporters shouldn't run if if they are on mission

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

diff --git a/src/unit/unit.cpp b/src/unit/unit.cpp
index 3a89ec75a..b65b8e298 100644
--- a/src/unit/unit.cpp
+++ b/src/unit/unit.cpp
@@ -2746,7 +2746,7 @@ void HitUnit(CUnit *attacker, CUnit &target, int damage, const Missile *missile)
 	}
 
 	// Can't attack run away.
-	if (!target.IsAgressive() && target.CanMove() && target.CurrentAction() == UnitActionStill) {
+	if (!target.IsAgressive() && target.CanMove() && target.CurrentAction() == UnitActionStill && !target.BoardCount) {
 		HitUnit_RunAway(target, *attacker);
 	}