Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -26,7 +26,7 @@ public class EnergyFieldAbility extends Ability{
|
|||||||
public Sound shootSound = Sounds.spark;
|
public Sound shootSound = Sounds.spark;
|
||||||
public float statusDuration = 60f * 6f;
|
public float statusDuration = 60f * 6f;
|
||||||
public float x, y;
|
public float x, y;
|
||||||
public boolean hitBuildings = true;
|
public boolean targetGround = true, targetAir = true, hitBuildings = true, hitUnits = true;
|
||||||
public int maxTargets = 25;
|
public int maxTargets = 25;
|
||||||
public float healPercent = 2.5f;
|
public float healPercent = 2.5f;
|
||||||
|
|
||||||
@@ -99,13 +99,15 @@ public class EnergyFieldAbility extends Ability{
|
|||||||
|
|
||||||
all.clear();
|
all.clear();
|
||||||
|
|
||||||
|
if(hitUnits){
|
||||||
Units.nearby(null, rx, ry, range, other -> {
|
Units.nearby(null, rx, ry, range, other -> {
|
||||||
if(other != unit){
|
if(other != unit && (other.isFlying() ? targetAir : targetGround)){
|
||||||
all.add(other);
|
all.add(other);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if(hitBuildings){
|
if(hitBuildings && targetGround){
|
||||||
Units.nearbyBuildings(rx, ry, range, b -> {
|
Units.nearbyBuildings(rx, ry, range, b -> {
|
||||||
if(b.team != Team.derelict || state.rules.coreCapture){
|
if(b.team != Team.derelict || state.rules.coreCapture){
|
||||||
all.add(b);
|
all.add(b);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "io",
|
"name": "io",
|
||||||
"address": ["mindustry.io.community", "mindustry.io.community:1000", "mindustry.io.community:2000", "mindustry.io.community:3000", "mindustry.io.community:4000", "mindustry.io.community:5000"]
|
"address": ["mindustry.io.community", "mindustry.io.community:1000", "mindustry.io.community:2000", "mindustry.io.community:3000", "mindustry.io.community:4000", "labs.io.community"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Korea",
|
"name": "Korea",
|
||||||
|
|||||||
Reference in New Issue
Block a user