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

Support for Titan's Thunder (creating Spellbook) & Titan's Lightning Bolt.

This commit is contained in:
DjWarmonger
2011-07-06 14:25:12 +00:00
parent 75d068bc03
commit c53c226820
5 changed files with 9 additions and 4 deletions

View File

@@ -1010,6 +1010,8 @@ void CArtifactInstance::move(ArtifactLocation &src, ArtifactLocation &dst)
{
removeFrom(src.hero, src.slot);
putAt(dst.hero, dst.slot);
if (artType->id == 135 && dst.slot == Arts::RIGHT_HAND && !dst.hero->hasSpellbook()) //Titan's Thunder creates new spellbook on equip
dst.hero->giveArtifact(0);
}
CArtifactInstance * CArtifactInstance::createNewArtifactInstance(CArtifact *Art)