Fixes the damage modifier not working sometimes (#8124)
Co-authored-by: Garen7 <Garen7@users.noreply.github.com>
This commit is contained in:
@@ -141,9 +141,9 @@ public class EnergyFieldAbility extends Ability{
|
||||
}else{
|
||||
anyNearby = true;
|
||||
if(other instanceof Building b){
|
||||
b.damage(unit.team, damage);
|
||||
b.damage(unit.team, damage * state.rules.unitDamage(unit.team));
|
||||
}else{
|
||||
other.damage(damage);
|
||||
other.damage(damage * state.rules.unitDamage(unit.team));
|
||||
}
|
||||
if(other instanceof Statusc s){
|
||||
s.apply(status, statusDuration);
|
||||
|
||||
Reference in New Issue
Block a user