mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-16 03:41:55 -07:00
Fixed #10315
This commit is contained in:
parent
286fff5a34
commit
af3d7585d6
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ public class EnergyFieldAbility extends Ability{
|
|||
|
||||
if(hitBuildings && targetGround){
|
||||
Units.nearbyBuildings(rx, ry, range, b -> {
|
||||
if((b.team != Team.derelict || state.rules.coreCapture) && (b.team != unit.team || b.damaged())){
|
||||
if((b.team != Team.derelict || state.rules.coreCapture) && ((b.team != unit.team && b.block.targetable) || b.damaged()) && !b.block.privileged){
|
||||
all.add(b);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue