Don't create unit spawns on campaign enemy core death when a spawn already exists
This commit is contained in:
@@ -600,7 +600,7 @@ public class CoreBlock extends StorageBlock{
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add a spawn to the map for future reference - waves should be disabled, so it shouldn't matter
|
//add a spawn to the map for future reference - waves should be disabled, so it shouldn't matter
|
||||||
if(state.isCampaign() && team == state.rules.waveTeam && team.cores().size <= 1 && state.rules.sector.planet.enemyCoreSpawnReplace){
|
if(state.isCampaign() && team == state.rules.waveTeam && team.cores().size <= 1 && spawner.getSpawns().size == 0 && state.rules.sector.planet.enemyCoreSpawnReplace){
|
||||||
//do not recache
|
//do not recache
|
||||||
tile.setOverlayQuiet(Blocks.spawn);
|
tile.setOverlayQuiet(Blocks.spawn);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user