浏览代码

Display specific message if cast blocked by CURSED_GROUND

AlexVinS 9 年之前
父节点
当前提交
7c91d378c8
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      client/windows/CSpellWindow.cpp

+ 4 - 0
client/windows/CSpellWindow.cpp

@@ -685,6 +685,10 @@ void CSpellWindow::SpellArea::clickLeft(tribool down, bool previousState)
 						owner->myInt->showInfoDialog(boost::str(boost::format(CGI->generaltexth->allTexts[536])
 							% artName % owner->myHero->name));
 					}
+					else if(b && b->source == Bonus::TERRAIN_OVERLAY && b->sid == BFieldType::CURSED_GROUND)
+					{
+						owner->myInt->showInfoDialog(CGI->generaltexth->allTexts[537]);
+					}
 					else
 					{
 						// General message: