MantisBT - VCMI
View Issue Details
0000850VCMIMechanics - Otherpublic2012-01-15 15:522014-05-30 17:40
Ivan 
Tow 
normaltweaksometimes
closedfixed 
 
0.88 
0000850: You can't sell misc artifact from starting bonus
To reproduce:
Start game with Tower, starting bonus - artifact
Restart the game until you'll get misc artifact (it will be placed it 5th misc slot)
Build artifact merchant and try to sell this art

You'll get this message from server:
System message: Server encountered a problem: Cannot sell a war machine or spellbook!
No tags attached.
Issue History
2012-01-15 15:52IvanNew Issue
2012-01-15 16:09WarmongerStatusnew => assigned
2012-01-15 16:09WarmongerAssigned To => Warmonger
2012-01-28 11:45WarmongerNote Added: 0002165
2012-01-28 11:45WarmongerStatusassigned => confirmed
2012-01-28 11:45WarmongerNote Edited: 0002165bug_revision_view_page.php?bugnote_id=2165#r1501
2012-01-28 14:15WarmongerNote Added: 0002166
2012-01-28 14:15WarmongerAssigned ToWarmonger =>
2012-02-17 19:32TowNote Added: 0002178
2012-02-17 19:32TowStatusconfirmed => resolved
2012-02-17 19:32TowFixed in Version => 0.89
2012-02-17 19:32TowResolutionopen => fixed
2012-02-17 19:32TowAssigned To => Tow
2014-05-30 17:40beegeeStatusresolved => closed

Notes
(0002165)
Warmonger   
2012-01-28 11:45   
This one is tricky, happens only when you sell an artifact directly from starting slot. If you move it once, it will work normally. Didn't find the reason yet.

(0002166)
Warmonger   
2012-01-28 14:15   
Ok, I got it. Artifact id is initialized to -1 at

void CArtifactInstance::init()

And is managed by serializer later on, but it seems that serialization is never called before we try to sell it for the first time.
(0002178)
Tow   
2012-02-17 19:32   
Fixed in r2536.