mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
* hero recruited in the town with Mage Guild will get spells (if has spellbook)
* fixed casting spells * resolved some "taking address of temporary" warnings * fixed removing killed Hero
This commit is contained in:
@ -1926,6 +1926,8 @@ void CGameHandler::hireHero( ui32 tid, ui8 hid )
|
||||
sr.resid = 6;
|
||||
sr.val = gs->getPlayer(t->tempOwner)->resources[6] - 2500;
|
||||
sendAndApply(&sr);
|
||||
|
||||
giveSpells(t,nh);
|
||||
}
|
||||
|
||||
void CGameHandler::queryReply( ui32 qid, ui32 answer )
|
||||
|
Reference in New Issue
Block a user