Fixes the damage modifier not working sometimes (#8124)

Co-authored-by: Garen7 <Garen7@users.noreply.github.com>
This commit is contained in:
Garen7
2023-01-07 10:30:49 -06:00
committed by GitHub
parent b57cde7148
commit c20d7f2b4f
6 changed files with 7 additions and 7 deletions

View File

@@ -88,7 +88,7 @@ abstract class CrawlComp implements Posc, Rotc, Hitboxc, Unitc{
//TODO area damage to units
if(t.build != null && t.build.team != team){
t.build.damage(team, type.crushDamage * Time.delta);
t.build.damage(team, type.crushDamage * Time.delta * state.rules.unitDamage(team));
}
if(Mathf.chanceDelta(0.025)){