9
0
mirror of https://github.com/Auxilor/Reforges.git synced 2025-12-30 12:29:10 +00:00

Fixed Crit Multiplier activating when it shouldn't

This commit is contained in:
Auxilor
2021-10-04 10:51:24 +01:00
parent d7244594a0
commit 9c06f7013f

View File

@@ -13,7 +13,7 @@ class EffectCritMultiplier : Effect("crit_multiplier") {
event: EntityDamageByEntityEvent,
config: JSONConfig
) {
if (attacker.velocity.y > 0) {
if (attacker.velocity.y >= 0) {
return
}
event.damage *= config.getDouble("multiplier")