Fixed #10315
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user