From edf7756783da5afff51d0d3382043d0d322f4d21 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Wed, 21 Jun 2023 17:53:02 +0300 Subject: [PATCH] Recalculate paths on (un)equipping Angel Wings --- client/NetPacksClient.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/NetPacksClient.cpp b/client/NetPacksClient.cpp index be792582b..39956c9b0 100644 --- a/client/NetPacksClient.cpp +++ b/client/NetPacksClient.cpp @@ -277,6 +277,8 @@ void ApplyClientNetPackVisitor::visitMoveArtifact(MoveArtifact & pack) moveArtifact(pack.src.owningPlayer()); if(pack.src.owningPlayer() != pack.dst.owningPlayer()) moveArtifact(pack.dst.owningPlayer()); + + cl.invalidatePaths(); // hero might have equipped/unequipped Angel Wings } void ApplyClientNetPackVisitor::visitBulkMoveArtifacts(BulkMoveArtifacts & pack) @@ -303,11 +305,15 @@ void ApplyClientNetPackVisitor::visitBulkMoveArtifacts(BulkMoveArtifacts & pack) void ApplyClientNetPackVisitor::visitAssembledArtifact(AssembledArtifact & pack) { callInterfaceIfPresent(cl, pack.al.owningPlayer(), &IGameEventsReceiver::artifactAssembled, pack.al); + + cl.invalidatePaths(); // hero might have equipped/unequipped Angel Wings } void ApplyClientNetPackVisitor::visitDisassembledArtifact(DisassembledArtifact & pack) { callInterfaceIfPresent(cl, pack.al.owningPlayer(), &IGameEventsReceiver::artifactDisassembled, pack.al); + + cl.invalidatePaths(); // hero might have equipped/unequipped Angel Wings } void ApplyClientNetPackVisitor::visitHeroVisit(HeroVisit & pack)