瀏覽代碼

Eagle Eye seems to work.

Michał W. Urbańczyk 14 年之前
父節點
當前提交
e3310f8759
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      server/CGameHandler.cpp

+ 4 - 2
server/CGameHandler.cpp

@@ -374,12 +374,13 @@ void CGameHandler::endBattle(int3 tile, const CGHeroInstance *hero1, const CGHer
 	sendAndApply(battleResult.data);
 	sendAndApply(battleResult.data);
 
 
 	//Eagle Eye secondary skill handling
 	//Eagle Eye secondary skill handling
-	/*if(cs.spells.size())
+	if(cs.spells.size())
 	{
 	{
 		cs.learn = 1;
 		cs.learn = 1;
 		cs.hid = victoriousHero->id;
 		cs.hid = victoriousHero->id;
 
 
 		InfoWindow iw;
 		InfoWindow iw;
+		iw.player = victoriousHero->tempOwner;
 		iw.text.addTxt(MetaString::GENERAL_TXT, 221); //Through eagle-eyed observation, %s is able to learn %s
 		iw.text.addTxt(MetaString::GENERAL_TXT, 221); //Through eagle-eyed observation, %s is able to learn %s
 		iw.text.addReplacement(victoriousHero->name);
 		iw.text.addReplacement(victoriousHero->name);
 
 
@@ -392,6 +393,7 @@ void CGameHandler::endBattle(int3 tile, const CGHeroInstance *hero1, const CGHer
 			else if(i < cs.spells.size() - 1)
 			else if(i < cs.spells.size() - 1)
 				names << "%s";
 				names << "%s";
 		}
 		}
+		names << ".";
 
 
 		iw.text.addReplacement(names.str());
 		iw.text.addReplacement(names.str());
 
 
@@ -406,7 +408,7 @@ void CGameHandler::endBattle(int3 tile, const CGHeroInstance *hero1, const CGHer
 
 
 		sendAndApply(&iw);
 		sendAndApply(&iw);
 		sendAndApply(&cs);
 		sendAndApply(&cs);
-	}*/
+	}
 
 
 	if(!duel)
 	if(!duel)
 	{
 	{