1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Merge pull request #4643 from SoundSSGood/CArtHandler-refactoring

CArtifactSet  tidy up
This commit is contained in:
Ivan Savenko
2024-10-01 16:26:32 +03:00
committed by GitHub
28 changed files with 194 additions and 237 deletions

View File

@@ -1640,7 +1640,7 @@ bool CGameState::giveHeroArtifact(CGHeroInstance * h, const ArtifactID & aid)
auto slot = ArtifactUtils::getArtAnyPosition(h, aid);
if(ArtifactUtils::isSlotEquipment(slot) || ArtifactUtils::isSlotBackpack(slot))
{
ai->putAt(*h, slot);
map->putArtifactInstance(*h, ai, slot);
return true;
}
else