Fix: The flying unit has no crash damage (#7173)

This commit is contained in:
RlCCJ
2022-07-15 11:36:32 +08:00
committed by GitHub
parent bb7f96437c
commit 5191dc1bd7

View File

@@ -592,7 +592,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
}
//if this unit crash landed (was flying), damage stuff in a radius
if(type.flying && !spawnedByCore && !type.createWreck){
if(type.flying && !spawnedByCore && type.createWreck){
Damage.damage(team, x, y, Mathf.pow(hitSize, 0.94f) * 1.25f, Mathf.pow(hitSize, 0.75f) * type.crashDamageMultiplier * 5f, true, false, true);
}