From ffc511054e8826815d297ae91c8e201f31d7976d Mon Sep 17 00:00:00 2001 From: DjWarmonger Date: Mon, 28 Nov 2016 21:45:41 +0100 Subject: [PATCH] Do not visit Eye of The Magi. --- AI/VCAI/VCAI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AI/VCAI/VCAI.cpp b/AI/VCAI/VCAI.cpp index a09a0193d..3b526144c 100644 --- a/AI/VCAI/VCAI.cpp +++ b/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);