mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-02-14 11:42:09 -08:00
Fixed #5710
This commit is contained in:
parent
5f29633689
commit
ce9bfdbcae
1 changed files with 5 additions and 1 deletions
|
|
@ -133,7 +133,11 @@ public class EnergyFieldAbility extends Ability{
|
|||
}
|
||||
}else{
|
||||
anyNearby = true;
|
||||
other.damage(damage);
|
||||
if(other instanceof Building b){
|
||||
b.damage(unit.team, damage);
|
||||
}else{
|
||||
other.damage(damage);
|
||||
}
|
||||
if(other instanceof Statusc s){
|
||||
s.apply(status, statusDuration);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue