소스 검색

Do not visit Eye of The Magi.

DjWarmonger 9 년 전
부모
커밋
ffc511054e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      AI/VCAI/VCAI.cpp

+ 2 - 0
AI/VCAI/VCAI.cpp

@@ -3258,6 +3258,8 @@ bool shouldVisit(HeroPtr h, const CGObjectInstance * obj)
 		case Obj::BOAT:
 			return false;
 			//Boats are handled by pathfinder
+		case Obj::EYE_OF_MAGI:
+			return false; //this object is useless to visit, but could be visited indefinitely
 	}
 
 	if (obj->wasVisited(*h)) //it must pointer to hero instance, heroPtr calls function wasVisited(ui8 player);