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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user