Spells/Fixup

* don't display a power cost of Happiness (4)
   (looks like bogus dbc data)
This commit is contained in:
Sarjuuk 2025-12-14 21:51:46 +01:00
parent 8b35421e53
commit a9a30d3106

View file

@ -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;