From 45278c7dd16e82d51117e43422aaadb804d328ea Mon Sep 17 00:00:00 2001 From: B1G-FUNGUS Date: Mon, 4 Oct 2021 20:07:42 -0700 Subject: [PATCH] fixed haste ritual --- .../java/top/penowl/quidproquo/rituals/HasteRitual.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/top/penowl/quidproquo/rituals/HasteRitual.java b/src/main/java/top/penowl/quidproquo/rituals/HasteRitual.java index 7181c7a..f6d9d36 100644 --- a/src/main/java/top/penowl/quidproquo/rituals/HasteRitual.java +++ b/src/main/java/top/penowl/quidproquo/rituals/HasteRitual.java @@ -25,9 +25,9 @@ public class HasteRitual extends Ritual { @Override public void execute(Player caster, Player target, Location location) { Random random = new Random(); - if(random.nextInt(10) == 0) { - target.addPotionEffect(new PotionEffect(PotionEffectType.FAST_DIGGING, 45, 50)); - } else target.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_DIGGING, 45, 50)); + if(random.nextInt(10) != 0) { + target.addPotionEffect(new PotionEffect(PotionEffectType.FAST_DIGGING, 45 * 20, 85)); + } else target.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_DIGGING, 45 * 20, 50)); } } \ No newline at end of file