Capped* strength of Collapse
This commit is contained in:
parent
92c94b7853
commit
95b1aa991b
|
|
@ -47,7 +47,7 @@ public record CollapseEffect(LevelBasedValue amount) implements EnchantmentEntit
|
|||
// 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.
|
||||
float damage = (effect.getAmplifier() + 1) * effect.getDuration() + 0.05f;
|
||||
enemy.hurt(enemy.damageSources().magic(), Math.max(damage, this.amount.calculate(level)));
|
||||
enemy.hurt(enemy.damageSources().magic(), Math.min(damage, this.amount.calculate(level)));
|
||||
enemy.invulnerableTime = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
"enchanted": "attacker",
|
||||
"effect": {
|
||||
"type": "mc_rebalance:collapse",
|
||||
"amount": 1.0
|
||||
"amount": 20.0
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue