mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Fixed #850.
This commit is contained in:
@ -677,6 +677,10 @@ DLL_LINKAGE void MoveArtifact::applyGs( CGameState *gs )
|
||||
assert(!dst.getArt());
|
||||
|
||||
a->move(src, dst);
|
||||
|
||||
//TODO what'll happen if Titan's thunder is equiped by pickin git up or the start of game?
|
||||
if (a->artType->id == 135 && dst.hero && dst.slot == ArtifactPosition::RIGHT_HAND && !dst.hero->hasSpellbook()) //Titan's Thunder creates new spellbook on equip
|
||||
gs->giveHeroArtifact(dst.hero, 0);
|
||||
}
|
||||
|
||||
DLL_LINKAGE void AssembledArtifact::applyGs( CGameState *gs )
|
||||
|
Reference in New Issue
Block a user