diff --git a/src/main/kotlin/gg/skytils/skytilsmod/utils/SkillUtils.kt b/src/main/kotlin/gg/skytils/skytilsmod/utils/SkillUtils.kt index 73e307844..c1b43ad01 100644 --- a/src/main/kotlin/gg/skytils/skytilsmod/utils/SkillUtils.kt +++ b/src/main/kotlin/gg/skytils/skytilsmod/utils/SkillUtils.kt @@ -314,7 +314,7 @@ object SkillUtils { get () { val offset = petRarityOffset[tier] ?: 0 val maxLevel = if (type == "GOLDEN_DRAGON") 200 else 100 - val levels = petLevels.sliceArray(offset..< offset + maxLevel) + val levels = petLevels.sliceArray(offset..< offset + maxLevel - 1) levels.reduceIndexed { index, acc, i -> if (exp < acc) return index - 1