Browse Source

Fixed #2308 - AI didn't attack enemy heroes at all.

DjWarmonger 10 years ago
parent
commit
2a59cb6191
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AI/VCAI/VCAI.cpp

+ 1 - 1
AI/VCAI/VCAI.cpp

@@ -3351,7 +3351,7 @@ int3 SectorMap::findFirstVisitableTile (HeroPtr h, crint3 dst)
 	while(curtile != h->visitablePos())
 	{
 		auto topObj = cb->getTopObj(curtile);
-		if (topObj && topObj->ID == Obj::HERO && topObj != h.h)
+		if (topObj && topObj->ID == Obj::HERO && h->tempOwner == topObj->tempOwner && topObj != h.h)
 		{
 			logAi->warnStream() << ("Another allied hero stands in our way");
 			return ret;