mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
MoveHero: add transit movement option
Transit is new option for hero movement. If it passed for movement then hero can get get on tile without visiting of object on it. Currently it's will be only allowed is object under destination is teleport.
This commit is contained in:
@@ -83,7 +83,7 @@ bool DismissHero::applyGh( CGameHandler *gh )
|
||||
bool MoveHero::applyGh( CGameHandler *gh )
|
||||
{
|
||||
ERROR_IF_NOT_OWNS(hid);
|
||||
return gh->moveHero(hid,dest,0,gh->getPlayerAt(c));
|
||||
return gh->moveHero(hid,dest,0,transit,gh->getPlayerAt(c));
|
||||
}
|
||||
|
||||
bool CastleTeleportHero::applyGh( CGameHandler *gh )
|
||||
|
||||
Reference in New Issue
Block a user