浏览代码

CGPandoraBox: don't use giveCreatures object removal feature

For pandora box there's own removal function and for CGEvent based on it we sometimes don't want to remove object at all.
Arseniy Shestakov 9 年之前
父节点
当前提交
07961766ca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/mapObjects/CGPandoraBox.cpp

+ 1 - 1
lib/mapObjects/CGPandoraBox.cpp

@@ -254,7 +254,7 @@ void CGPandoraBox::giveContentsAfterExp(const CGHeroInstance *h) const
 		iw.text.addReplacement(h->name);
 
 		cb->showInfoDialog(&iw);
-		cb->giveCreatures(this, h, creatures, true);
+		cb->giveCreatures(this, h, creatures, false);
 	}
 	if(!hasGuardians && msg.size())
 	{