MantisBT - VCMI
View Issue Details
0000981VCMIMechanics - Adventure Mappublic2012-05-26 19:362022-04-12 10:47
Ivan 
vmarkovtsev 
normalminoralways
closedfixed 
x86_64Ubuntu Linux12.04 (precise)
 
0.98g 
0000981: Retreating from battle resets hero mana points
1) Attack somebody, cast spell and retreat.
2) Buy hero back from tavern
He will have mana points reset to his normal maximum (Knowledge * 10)

Instead mana points should not change at all with keeping bonuses if any (like mana whirpool in dungeon)
No tags attached.
related to 0000599closed Warmonger Again wrong mana amount on start a map is given for heroes with Intelligence or if art-as-bonus gives knowledge 
related to 0000980closed Tow Retreating hero loses spellbook 
child of 0001344closed vmarkovtsev After retreating from battle hero in tavern will have full move points and mana 
Issue History
2012-05-26 19:36IvanNew Issue
2012-05-27 15:01WarmongerRelationship addedrelated to 0000980
2012-05-27 18:12TowRelationship addedrelated to 0000599
2012-08-18 19:02randomedNote Added: 0002914
2012-08-18 19:12randomedNote Edited: 0002914bug_revision_view_page.php?bugnote_id=2914#r1842
2012-08-19 21:51randomedNote Edited: 0002914bug_revision_view_page.php?bugnote_id=2914#r1845
2013-07-18 14:39WarmongerRelationship addedchild of 0001344
2014-09-02 09:56WarmongerCategoryMechanics - Other => Mechanics - Adventure Map
2016-01-26 16:22vmarkovtsevAssigned To => vmarkovtsev
2016-01-26 16:22vmarkovtsevStatusnew => assigned
2016-01-26 19:32vmarkovtsevNote Added: 0006365
2016-01-27 20:58SXXStatusassigned => resolved
2016-01-27 20:58SXXFixed in Version => 0.98g
2016-01-27 20:58SXXResolutionopen => fixed
2022-04-12 10:47PovelitelStatusresolved => closed

Notes
(0002914)
randomed   
2012-08-18 19:02   
(edited on: 2012-08-19 21:51)
I've tested this, and if you look closely, he still has the same mana points when he is in the tavern (check with right click on hero). It's when you hire him that he gets his mana points restored to max (or normal?).

I've gone through the hire operations, but I cannot seem to find the ones that are causing to reset the mana points.

(0006365)
vmarkovtsev   
2016-01-26 19:32   
https://github.com/vcmi/vcmi/pull/173 [^]