Fixed #7755
This commit is contained in:
@@ -101,7 +101,7 @@ public class EnergyFieldAbility extends Ability{
|
||||
|
||||
if(hitUnits){
|
||||
Units.nearby(null, rx, ry, range, other -> {
|
||||
if(other != unit && other.checkTarget(targetAir, targetGround) && other.targetable(unit.team)){
|
||||
if(other != unit && other.checkTarget(targetAir, targetGround) && other.targetable(unit.team) && (other.team != unit.team || other.damaged())){
|
||||
all.add(other);
|
||||
}
|
||||
});
|
||||
@@ -109,7 +109,7 @@ public class EnergyFieldAbility extends Ability{
|
||||
|
||||
if(hitBuildings && targetGround){
|
||||
Units.nearbyBuildings(rx, ry, range, b -> {
|
||||
if(b.team != Team.derelict || state.rules.coreCapture){
|
||||
if((b.team != Team.derelict || state.rules.coreCapture) && (b.team != unit.team || b.damaged())){
|
||||
all.add(b);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -170,7 +170,7 @@ public class HintsFragment{
|
||||
boost(visibleDesktop, () -> !player.dead() && player.unit().type.canBoost, () -> Core.input.keyDown(Binding.boost)),
|
||||
blockInfo(() -> !(state.isCampaign() && state.rules.sector == SectorPresets.groundZero.sector && state.wave < 3), () -> ui.content.isShown()),
|
||||
derelict(() -> ui.hints.events.contains("derelictmouse") && !isTutorial.get(), () -> false),
|
||||
payloadPickup(() -> !player.unit().dead && player.unit() instanceof Payloadc p && p.payloads().isEmpty(), () -> player.unit() instanceof Payloadc p && p.payloads().any()),
|
||||
payloadPickup(() -> isSerpulo() && !player.unit().dead && player.unit() instanceof Payloadc p && p.payloads().isEmpty(), () -> player.unit() instanceof Payloadc p && p.payloads().any()),
|
||||
payloadDrop(() -> !player.unit().dead && player.unit() instanceof Payloadc p && p.payloads().any(), () -> player.unit() instanceof Payloadc p && p.payloads().isEmpty()),
|
||||
waveFire(() -> Groups.fire.size() > 0 && Blocks.wave.unlockedNow(), () -> indexer.getFlagged(state.rules.defaultTeam, BlockFlag.extinguisher).size > 0),
|
||||
generator(() -> control.input.block == Blocks.combustionGenerator, () -> ui.hints.placedBlocks.contains(Blocks.combustionGenerator)),
|
||||
|
||||
Reference in New Issue
Block a user