Ver Fonte

CStack::prepareAttacked: fix for REBIRTH bonus after merge

Arseniy Shestakov há 7 anos atrás
pai
commit
15c8b192b4
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/CStack.cpp

+ 1 - 1
lib/CStack.cpp

@@ -210,7 +210,7 @@ void CStack::prepareAttacked(BattleStackAttacked & bsa, vstd::RNG & rand, std::s
 
 		if(resurrectValue > 0 && customState->canCast()) //there must be casts left
 		{
-			double resurrectFactor = resurrectValue / 100;
+			double resurrectFactor = resurrectValue / 100.0;
 
 			auto baseAmount = customState->unitBaseAmount();