Spells/Tooltips

* allow spells to scale up to its maxLevel instead of max player level
   (e.g. spell 42891)
This commit is contained in:
Sarjuuk
2025-08-23 01:26:34 +02:00
parent a4a3876cdc
commit 8243be8d8e

View File

@@ -735,8 +735,8 @@ class SpellList extends BaseType
return [
$min + $maxBase,
$max + $maxBase,
$rppl ? '<!--ppl'.$baseLvl.':'.$level.':'.$min.':'.($rppl * 100 * $nTicks).'-->' : null,
$rppl ? '<!--ppl'.$baseLvl.':'.$level.':'.$max.':'.($rppl * 100 * $nTicks).'-->' : null
$rppl ? '<!--ppl'.$baseLvl.':'.($maxLvl ?: $level).':'.$min.':'.($rppl * 100 * $nTicks).'-->' : null,
$rppl ? '<!--ppl'.$baseLvl.':'.($maxLvl ?: $level).':'.$max.':'.($rppl * 100 * $nTicks).'-->' : null
];
}