瀏覽代碼

Fixed primary/secondary skill levels given by a scholar.

Frank Zago 16 年之前
父節點
當前提交
574780da21
共有 1 個文件被更改,包括 3 次插入5 次删除
  1. 3 5
      hch/CObjectHandler.cpp

+ 3 - 5
hch/CObjectHandler.cpp

@@ -2748,13 +2748,11 @@ void CGScholar::onHeroVisit( const CGHeroInstance * h ) const
 	{
 	{
 	case 0:
 	case 0:
 		cb->changePrimSkill(h->id,bid,+1);
 		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;
 		break;
 	case 1:
 	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;
 		break;
 	case 2:
 	case 2:
 		{
 		{