Capped strength of Collapse

This commit is contained in:
patience 2026-03-10 02:03:51 +00:00
parent 1ec4da14f3
commit 92c94b7853
No known key found for this signature in database

View file

@ -46,7 +46,8 @@ public record CollapseEffect(LevelBasedValue amount) implements EnchantmentEntit
// It's also still reasonably interesting because it creates a choice between Crumble for Wither effect and poison splash potions, // It's also still reasonably interesting because it creates a choice between Crumble for Wither effect and poison splash potions,
// as well as punishing loading too many effects at once due to their local iframes. // as well as punishing loading too many effects at once due to their local iframes.
// AKA: this minimises the odds that players start 1-tapping each other. // AKA: this minimises the odds that players start 1-tapping each other.
enemy.hurt(enemy.damageSources().magic(), (effect.getAmplifier() + 1) * effect.getDuration() * this.amount.calculate(level) * 0.05f); float damage = (effect.getAmplifier() + 1) * effect.getDuration() + 0.05f;
enemy.hurt(enemy.damageSources().magic(), Math.max(damage, this.amount.calculate(level)));
enemy.invulnerableTime = 0; enemy.invulnerableTime = 0;
} }
} }