diff --git a/src/main/java/com/minelittlepony/unicopia/item/toxin/Toxin.java b/src/main/java/com/minelittlepony/unicopia/item/toxin/Toxin.java index 665fe811..eb9ac6d4 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/toxin/Toxin.java +++ b/src/main/java/com/minelittlepony/unicopia/item/toxin/Toxin.java @@ -99,7 +99,12 @@ public interface Toxin extends Affliction { text = new TranslatableText("potion.withDuration", text, ChatUtil.ticksToString(ticks)); return of(text, (player, stack) -> { - player.addStatusEffect(new StatusEffectInstance(effect, ticks, amplifier, false, false, false)); + StatusEffectInstance current = player.getStatusEffect(effect); + if (current != null) { + player.addStatusEffect(new StatusEffectInstance(effect, ticks + current.getDuration(), amplifier + current.getAmplifier(), false, false, false)); + } else { + player.addStatusEffect(new StatusEffectInstance(effect, ticks, amplifier, false, false, false)); + } }); }