Explorar o código

Amount box support for stacked war machines

Dydzio %!s(int64=8) %!d(string=hai) anos
pai
achega
2d6f964d65
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/battle/CBattleInterface.cpp

+ 1 - 1
client/battle/CBattleInterface.cpp

@@ -3275,7 +3275,7 @@ void CBattleInterface::showAliveStacks(SDL_Surface *to, std::vector<const CStack
 {
 	auto isAmountBoxVisible = [&](const CStack *stack) -> bool
 	{
-		if(stack->hasBonusOfType(Bonus::SIEGE_WEAPON)) // siege weapons are always singular
+		if(stack->hasBonusOfType(Bonus::SIEGE_WEAPON) && stack->count == 1) //do not show box for singular war machines, stacked war machines with box shown are supported as extension feature
 			return false;
 
 		if(stack->count == 0) //hide box when target is going to die anyway - do not display "0 creatures"