diff --git a/core/src/mindustry/entities/comp/UnitComp.java b/core/src/mindustry/entities/comp/UnitComp.java index b533e62e02..ba6cee7e1b 100644 --- a/core/src/mindustry/entities/comp/UnitComp.java +++ b/core/src/mindustry/entities/comp/UnitComp.java @@ -453,6 +453,11 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I healTime -= Time.delta / 20f; wasHealed = false; + //die on captured sectors immediately + if(team.isOnlyAI() && state.isCampaign() && state.getSector().isCaptured()){ + kill(); + } + if(!headless && type.loopSound != Sounds.none){ control.sound.loop(type.loopSound, this, type.loopSoundVolume); }