1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Do not visit Eye of The Magi.

This commit is contained in:
DjWarmonger 2016-11-28 21:45:41 +01:00
parent 9b5af484b7
commit ffc511054e

View File

@ -3258,6 +3258,8 @@ bool shouldVisit(HeroPtr h, const CGObjectInstance * obj)
case Obj::BOAT: case Obj::BOAT:
return false; return false;
//Boats are handled by pathfinder //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); if (obj->wasVisited(*h)) //it must pointer to hero instance, heroPtr calls function wasVisited(ui8 player);