From a9a30d31060bb31a32b9d93bd8124258aa5ea966 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 14 Dec 2025 21:51:46 +0100 Subject: [PATCH] Spells/Fixup * don't display a power cost of Happiness (4) (looks like bogus dbc data) --- includes/dbtypes/spell.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/dbtypes/spell.class.php b/includes/dbtypes/spell.class.php index 032f0e6b..9ab553a8 100644 --- a/includes/dbtypes/spell.class.php +++ b/includes/dbtypes/spell.class.php @@ -623,6 +623,10 @@ class SpellList extends DBTypeList $pps = $this->curTpl['powerPerSecond']; $pcpl = $this->curTpl['powerCostPerLevel']; + // some potion effects have this set, but it's not displayed by client (or enforced by core) + if ($pt == POWER_HAPPINESS) + return ''; + if ($pt == POWER_RAGE || $pt == POWER_RUNIC_POWER) $pc /= 10;