Browse Source

CStack::prepareAttacked: fix for REBIRTH bonus after merge

Arseniy Shestakov 7 years ago
parent
commit
15c8b192b4
1 changed files with 1 additions and 1 deletions
  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();