mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
VCAI: dont visit border guard if tent not visited. Fix issue 1590
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.
This commit is contained in:
parent
4f7664926e
commit
5778082842
@ -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:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user