1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fixed primary/secondary skill levels given by a scholar.

This commit is contained in:
Frank Zago 2009-06-10 00:06:35 +00:00
parent be806d7942
commit 574780da21

View File

@ -2748,13 +2748,11 @@ void CGScholar::onHeroVisit( const CGHeroInstance * h ) const
{
case 0:
cb->changePrimSkill(h->id,bid,+1);
iw.components.push_back(Component(Component::PRIM_SKILL,bid,1,0));
iw.components.push_back(Component(Component::PRIM_SKILL,bid,ssl+1,0));
break;
case 1:
{
cb->changeSecSkill(h->id,bid,ssl+1);
iw.components.push_back(Component(Component::SEC_SKILL,bid,ssl+1,0));
}
cb->changeSecSkill(h->id,bid,+1);
iw.components.push_back(Component(Component::SEC_SKILL,bid,ssl+1,0));
break;
case 2:
{