1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Do not check for guards when teleporting using means other than DD

This commit is contained in:
Ivan Savenko
2024-05-07 20:05:23 +00:00
parent 6a1477838d
commit 8b861fc58f
13 changed files with 30 additions and 21 deletions

View File

@@ -65,7 +65,7 @@ void ApplyGhNetPackVisitor::visitMoveHero(MoveHero & pack)
for (auto const & dest : pack.path)
{
if (!gh.moveHero(pack.hid, dest, 0, pack.transit, pack.player))
if (!gh.moveHero(pack.hid, dest, EMovementMode::STANDARD, pack.transit, pack.player))
{
result = false;
return;