瀏覽代碼

Merge pull request #2234 from vcmi/fix_pandora

Fix empty Pandora message
DjWarmonger 2 年之前
父節點
當前提交
c448f6275e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/mapObjects/CGPandoraBox.cpp

+ 1 - 1
lib/mapObjects/CGPandoraBox.cpp

@@ -331,7 +331,7 @@ void CGPandoraBox::blockingDialogAnswered(const CGHeroInstance *hero, ui32 answe
 		else if(message.empty() && resources.empty()
 			&& primskills.empty() && abilities.empty()
 			&& abilityLevels.empty() && artifacts.empty()
-			&& spells.empty() && creatures.stacksCount() > 0
+			&& spells.empty() && creatures.stacksCount() == 0
 			&& gainedExp == 0 && manaDiff == 0 && moraleDiff == 0 && luckDiff == 0) //if it gives nothing without battle
 		{
 			hero->showInfoDialog(15);