1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00
This commit is contained in:
Michał W. Urbańczyk
2012-02-17 19:30:40 +00:00
parent 1abf089bc7
commit a975805ae8
6 changed files with 30 additions and 22 deletions

View File

@ -1027,17 +1027,11 @@ void CArtifactInstance::move(ArtifactLocation &src, ArtifactLocation &dst)
tlog1 << "No source for moved artifact found!\n";
if (dst.hero)
{
putAt(dst.hero, dst.slot);
if (artType->id == 135 && dst.slot == ArtifactPosition::RIGHT_HAND && !dst.hero->hasSpellbook()) //Titan's Thunder creates new spellbook on equip
dst.hero->giveArtifact(0);
}
else if (dst.stack)
putAt(dst.stack, dst.slot);
else
tlog1 << "No destination for moved artifact found!\n";
}
CArtifactInstance * CArtifactInstance::createNewArtifactInstance(CArtifact *Art)