mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Do not animate events such as new monsters
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user