Capped strength of Collapse
This commit is contained in:
parent
1ec4da14f3
commit
92c94b7853
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue