Browse Source

Do not animate events such as new monsters

Ivan Savenko 1 year ago
parent
commit
c19992ee5b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      client/mapView/MapViewController.cpp

+ 4 - 1
client/mapView/MapViewController.cpp

@@ -277,6 +277,9 @@ bool MapViewController::isEventInstant(const CGObjectInstance * obj, const Playe
 	if (!isEventVisible(obj, initiator))
 		return true;
 
+	if (!initiator.isValidPlayer())
+		return true; // skip effects such as new monsters on new month
+
 	if(initiator != LOCPLINT->playerID && settings["adventure"]["enemyMoveTime"].Float() <= 0)
 		return true; // instant movement speed
 
@@ -324,7 +327,7 @@ bool MapViewController::isEventVisible(const CGHeroInstance * obj, const int3 &
 		return false;
 
 	// do not focus on actions of other players except for AI with simturns off
-	if (obj->getOwner() != LOCPLINT->playerID && obj->getOwner().isValidPlayer())
+	if (obj->getOwner() != LOCPLINT->playerID)
 	{
 		if (LOCPLINT->makingTurn)
 			return false;