CQuest::checkQuest cant be used for border guard since CGKeys not yet work using quests. Currently border guard have MISSION_NONE quest that always return true and make AI stuck.
@@ -3140,6 +3140,7 @@ bool shouldVisit(HeroPtr h, const CGObjectInstance * obj)
}
break;
case Obj::BORDERGUARD: //open borderguard if possible
+ return (dynamic_cast <const CGKeys *>(obj))->wasMyColorVisited(ai->playerID);
case Obj::SEER_HUT:
case Obj::QUEST_GUARD:
{