From 7e3f72289763747427e03011a99c22548177e0a3 Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Wed, 1 May 2024 19:07:36 +0200 Subject: Fix: Magical Power not setting to 0 when the Line doesn't exist (#1632) --- src/main/java/at/hannibal2/skyhanni/data/MaxwellAPI.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/data') diff --git a/src/main/java/at/hannibal2/skyhanni/data/MaxwellAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/MaxwellAPI.kt index d711273f5..bea8bb294 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/MaxwellAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/MaxwellAPI.kt @@ -277,6 +277,9 @@ object MaxwellAPI { return@matchMatcher } } + + // If Magical Power isn't in the lore + magicalPower = 0 } private fun getPowerByNameOrNull(name: String) = powers.find { it == name } -- cgit