diff --git a/includes/types/item.class.php b/includes/types/item.class.php index bf5b4fe1..d31a15a6 100644 --- a/includes/types/item.class.php +++ b/includes/types/item.class.php @@ -1167,9 +1167,15 @@ class ItemList extends BaseType if ($this->curTpl['pageTextId']) $xMisc[] = ''.Lang::item('readClick').''; - // charges (i guess checking first spell is enough) - if ($this->curTpl['spellCharges1']) - $xMisc[] = ''.Lang::item('charges', [abs($this->curTpl['spellCharges1'])]).''; + // charges + for ($i = 1; $i < 6; $i++) + { + if (in_array($this->curTpl['spellTrigger'.$i], [SPELL_TRIGGER_USE, SPELL_TRIGGER_SOULSTONE, SPELL_TRIGGER_USE_NODELAY, SPELL_TRIGGER_LEARN]) && $this->curTpl['spellCharges'.$i]) + { + $xMisc[] = ''.Lang::item('charges', [abs($this->curTpl['spellCharges'.$i])]).''; + break; + } + } // list required reagents if (isset($xCraft))