Items/Tooltip

* do not show cooldown for passive onEquip spells
This commit is contained in:
Sarjuuk
2024-02-02 05:19:23 +01:00
parent 85e8175338
commit 6958efcd0f

View File

@@ -956,7 +956,7 @@ class ItemList extends BaseType
$cd = $this->curTpl['spellCategoryCooldown'.$j]; $cd = $this->curTpl['spellCategoryCooldown'.$j];
$extra = []; $extra = [];
if ($cd >= 5000) if ($cd >= 5000 && $this->curTpl['spellTrigger'.$j] != SPELL_TRIGGER_EQUIP)
{ {
$pt = Util::parseTime($cd); $pt = Util::parseTime($cd);
if (count(array_filter($pt)) == 1) // simple time: use simple method if (count(array_filter($pt)) == 1) // simple time: use simple method