mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Merge branch 'develop' into 'lobby'
This commit is contained in:
@@ -1189,7 +1189,7 @@ bool CGameHandler::moveHero(ObjectInstanceID hid, int3 dst, ui8 teleporting, boo
|
||||
if (leavingTile == LEAVING_TILE)
|
||||
leaveTile();
|
||||
|
||||
if (isInTheMap(guardPos))
|
||||
if (lookForGuards == CHECK_FOR_GUARDS && isInTheMap(guardPos))
|
||||
tmh.attackedFrom = std::make_optional(guardPos);
|
||||
|
||||
tmh.result = result;
|
||||
|
||||
Reference in New Issue
Block a user