Merge pull request #1908 from SoundSSGood/art-client-server-fixes

Artifact related fixes
This commit is contained in:
Ivan Savenko authored and GitHub committed 2023-04-10 18:26:49 +03:00
commit 42b2be4bbb
14 files changed
+75 -2

No files matched your search

+6
View File
@@ -146,6 +146,12 @@ void ApplyGhNetPackVisitor::visitAssembleArtifacts(AssembleArtifacts & pack)
result = gh.assembleArtifacts(pack.heroID, pack.artifactSlot, pack.assemble, pack.assembleTo);
}
void ApplyGhNetPackVisitor::visitEraseArtifactByClient(EraseArtifactByClient & pack)
{
gh.throwOnWrongPlayer(&pack, pack.al.owningPlayer());
result = gh.eraseArtifactByClient(pack.al);
}
void ApplyGhNetPackVisitor::visitBuyArtifact(BuyArtifact & pack)
{
gh.throwOnWrongOwner(&pack, pack.hid);