Update Damage.java

This commit is contained in:
Anuken
2021-03-17 19:32:32 -04:00
committed by GitHub
parent 2025d6ad2d
commit 53b99a650c

View File

@@ -337,12 +337,7 @@ public class Damage{
/** Damages all entities and blocks in a radius that are enemies of the team. */
public static void damage(Team team, float x, float y, float radius, float damage, boolean complete, boolean air, boolean ground){
Cons<Unit> cons
= entity -> {
Cons<Unit> cons = entity -> {
if(entity.team == team || !entity.within(x, y, radius) || (entity.isFlying() && !air) || (entity.isGrounded() && !ground)){
return;
}