Skip to content

Commit

Permalink
Don't allow spawners spawning new units when EMP'ed
Browse files Browse the repository at this point in the history
  • Loading branch information
ZivDero committed Dec 20, 2024
1 parent 1a01961 commit 204af4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/new/spawnmanager/spawnmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,12 @@ void SpawnManagerClass::AI()
if (IonStorm_Is_Active())
continue;

/**
* No spawning if the spawner is EMP'ed.
*/
if (Owner->EMPFramesRemaining)
continue;

/**
* If the spawner can move (i. e. is not a building), don't allow spawning while it's on the move.
*/
Expand Down

0 comments on commit 204af4c

Please sign in to comment.