ソースを参照

Remove excessive logging on using Recanter's Cloak in siege of Tower

Ivan Savenko 1 年間 前
コミット
1519de60bf
1 ファイル変更2 行追加1 行削除
  1. 2 1
      lib/spells/ObstacleCasterProxy.cpp

+ 2 - 1
lib/spells/ObstacleCasterProxy.cpp

@@ -71,7 +71,8 @@ SilentCaster::SilentCaster(PlayerColor owner_, const Caster * hero_):
 
 void SilentCaster::getCasterName(MetaString & text) const
 {
-	logGlobal->error("Unexpected call to SilentCaster::getCasterName");
+	// NOTE: can be triggered (for example) if creature steps into Tower mines/moat while hero has Recanter's Cloak
+	logGlobal->debug("Unexpected call to SilentCaster::getCasterName");
 }
 
 void SilentCaster::getCastDescription(const Spell * spell, const std::vector<const battle::Unit *> & attacked, MetaString & text) const