Fix more things that hit non-hittable units (#7408)

* hittable check for EMP

* hittable check for Damage#status

* why push if don't get hit
This commit is contained in:
MEEPofFaith
2022-08-21 17:09:47 -04:00
committed by GitHub
parent dde9f895cf
commit 11e3f85242
3 changed files with 3 additions and 3 deletions
@@ -48,7 +48,7 @@ public class EmpBulletType extends BasicBulletType{
if(hitUnits){
Units.nearbyEnemies(b.team, x, y, radius, other -> {
if(other.team != b.team){
if(other.team != b.team && other.hittable()){
var absorber = Damage.findAbsorber(b.team, x, y, other.x, other.y);
if(absorber != null){
return;