Преглед изворни кода

Fix duplicate MR bonus display

AlexVinS пре 11 година
родитељ
комит
c43b218d64
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      client/windows/CCreatureWindow.cpp

+ 1 - 1
client/windows/CCreatureWindow.cpp

@@ -754,7 +754,7 @@ void CStackWindow::initBonusesList()
 
 		//if it's possible to give any description or image for this kind of bonus
 		//TODO: figure out why half of bonuses don't have proper description
-		if (!bonusInfo.name.empty() || !bonusInfo.imagePath.empty())
+		if ((!bonusInfo.name.empty() || !bonusInfo.imagePath.empty())&& b->type != Bonus::MAGIC_RESISTANCE)
 			activeBonuses.push_back(bonusInfo);
 	}