mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-22 05:38:19 +07:00
Fixed #5710
This commit is contained in:
@ -133,7 +133,11 @@ public class EnergyFieldAbility extends Ability{
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
anyNearby = true;
|
anyNearby = true;
|
||||||
other.damage(damage);
|
if(other instanceof Building b){
|
||||||
|
b.damage(unit.team, damage);
|
||||||
|
}else{
|
||||||
|
other.damage(damage);
|
||||||
|
}
|
||||||
if(other instanceof Statusc s){
|
if(other instanceof Statusc s){
|
||||||
s.apply(status, statusDuration);
|
s.apply(status, statusDuration);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user