Browse Source

Apply x2 bonus only to creature growth of affected creature on new month

Ivan Savenko 1 year ago
parent
commit
7a0726bcff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/processors/NewTurnProcessor.cpp

+ 1 - 1
server/processors/NewTurnProcessor.cpp

@@ -280,7 +280,7 @@ SetAvailableCreatures NewTurnProcessor::generateTownGrowth(const CGTownInstance
 
 		if (weekType == EWeekType::PLAGUE)
 			resultingCreatures = creaturesBefore / 2;
-		else if (weekType == EWeekType::DOUBLE_GROWTH)
+		else if (weekType == EWeekType::DOUBLE_GROWTH && vstd::contains(t->creatures.at(k).second, creatureWeek))
 			resultingCreatures = (creaturesBefore + creatureGrowth) * 2;
 		else
 			resultingCreatures = creaturesBefore + creatureGrowth;