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

HAS_CHARGES_LIMITER

This commit is contained in:
SoundSSGood
2025-05-20 16:29:14 +02:00
parent b6f1eac19b
commit 6752ab3a75
20 changed files with 136 additions and 78 deletions

View File

@@ -946,6 +946,9 @@ void GameStatePackVisitor::visitDischargeArtifact(DischargeArtifact & pack)
ePack.posPack.push_back(pack.artLoc.value().slot);
ePack.visit(*this);
}
// Workaround to inform hero bonus node about changes. Obviously this has to be done somehow differently.
if(pack.artLoc.has_value())
gs.getHero(pack.artLoc.value().artHolder)->nodeHasChanged();
}
void GameStatePackVisitor::visitAssembledArtifact(AssembledArtifact & pack)