mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Working SoD version of fly
This commit is contained in:
@@ -1195,7 +1195,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