diff --git a/includes/types/item.class.php b/includes/types/item.class.php
index 139c11e8..552a1a65 100644
--- a/includes/types/item.class.php
+++ b/includes/types/item.class.php
@@ -970,28 +970,31 @@ class ItemList extends BaseType
if ($itemSpellsAndTrigger)
{
- $cooldown = '';
-
$itemSpells = new SpellList(array(['s.id', array_keys($itemSpellsAndTrigger)]));
- foreach ($itemSpells->iterate() as $__)
- if ($parsed = $itemSpells->parseText('description', $_reqLvl > 1 ? $_reqLvl : MAX_LEVEL, false, $causesScaling)[0])
+ foreach ($itemSpells->iterate() as $sId => $__)
+ {
+ $parsed = $itemSpells->parseText('description', $_reqLvl > 1 ? $_reqLvl : MAX_LEVEL, false, $causesScaling)[0];
+ if (!$parsed && User::isInGroup(U_GROUP_EMPLOYEE))
+ $parsed = '<'.$itemSpells->getField('name', true, true).'>';
+ else if (!$parsed)
+ continue;
+
+ if ($interactive)
{
- if ($interactive)
- {
- $link = '%s';
- $parsed = preg_replace_callback('/([^;]*)( .*?<\/small>)([^&]*)/i', function($m) use($link) {
- $m[1] = $m[1] ? sprintf($link, $m[1]) : '';
- $m[3] = $m[3] ? sprintf($link, $m[3]) : '';
- return $m[1].$m[2].$m[3];
- }, $parsed, -1, $nMatches
- );
+ $link = '%s';
+ $parsed = preg_replace_callback('/([^;]*)( .*?<\/small>)([^&]*)/i', function($m) use($link) {
+ $m[1] = $m[1] ? sprintf($link, $m[1]) : '';
+ $m[3] = $m[3] ? sprintf($link, $m[3]) : '';
+ return $m[1].$m[2].$m[3];
+ }, $parsed, -1, $nMatches
+ );
- if (!$nMatches)
- $parsed = sprintf($link, $parsed);
- }
-
- $green[] = Lang::item('trigger', $itemSpellsAndTrigger[$itemSpells->id][0]).$parsed.$itemSpellsAndTrigger[$itemSpells->id][1];
+ if (!$nMatches)
+ $parsed = sprintf($link, $parsed);
}
+
+ $green[] = Lang::item('trigger', $itemSpellsAndTrigger[$itemSpells->id][0]).$parsed.$itemSpellsAndTrigger[$itemSpells->id][1];
+ }
}
}