mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
CPathfinder: add rule that hero in boat can't visit empty boats
This commit is contained in:
@ -387,6 +387,11 @@ bool CPathfinder::isMovementToDestPossible() const
|
||||
if(dObj->ID != Obj::BOAT && dObj->ID != Obj::HERO)
|
||||
return false;
|
||||
}
|
||||
else if(dObj && dObj->ID == Obj::BOAT)
|
||||
{
|
||||
/// Hero in boat can't visit empty boats
|
||||
return false;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user