AI heroes cannot get off ship
Status: Beta
Brought to you by:
afletdinov
When playing games like Seven Lakes, the simple AI never allows heroes to exit a ship once they have entered it. Ai Heroes just sail around forever. A simple solution is to change the following in ai_heroes.cpp method AIHeroesAddedTask(Heroes & hero):
if(hero.isShipMaster())
{
if(! tile.isWater()) continue;
Should be:
if(hero.isShipMaster())
{
if(MP2::OBJ_COAST!=tile.GetObject() && !tile.isWater()) continue;
Cheers,
M3rlin
fixed, svn rev. 3243. thanks you!