mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
parent
51946e60a5
commit
e79507ab0d
@ -1526,8 +1526,8 @@ bool CGameHandler::moveHero( si32 hid, int3 dst, ui8 instant, ui8 asker /*= 255*
|
||||
&& complain("Cannot move hero, destination tile is on water!")
|
||||
|| (h->boat && t.tertype != TerrainTile::water && t.blocked)
|
||||
&& complain("Cannot disembark hero, tile is blocked!")
|
||||
|| (h->movement < cost && dst != h->pos)
|
||||
&& complain("Hero don't have any movement points left!")
|
||||
|| (h->movement < cost && dst != h->pos && !instant)
|
||||
&& complain("Hero doesn't have any movement points left!")
|
||||
|| states.checkFlag(h->tempOwner, &PlayerStatus::engagedIntoBattle)
|
||||
&& complain("Cannot move hero during the battle"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user