From b95363cdcc8526ca96f926ebb8a728d1269279e3 Mon Sep 17 00:00:00 2001 From: often Date: Sun, 1 Sep 2024 14:37:37 +0300 Subject: [PATCH] Fixed damage_twice only working once --- .../com/willfp/libreforge/effects/impl/EffectDamageTwice.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/common/src/main/kotlin/com/willfp/libreforge/effects/impl/EffectDamageTwice.kt b/core/common/src/main/kotlin/com/willfp/libreforge/effects/impl/EffectDamageTwice.kt index 4da0690e9..b0c51459d 100644 --- a/core/common/src/main/kotlin/com/willfp/libreforge/effects/impl/EffectDamageTwice.kt +++ b/core/common/src/main/kotlin/com/willfp/libreforge/effects/impl/EffectDamageTwice.kt @@ -23,6 +23,7 @@ object EffectDamageTwice : Effect("damage_twice") { val victim = data.victim ?: return false if (victim.hasMetadata(META_KEY)) { + victim.removeMetadata(META_KEY, plugin) return false }