moved shared code from the type-classes to commen parent-class

conditions for the type-lists should be more flexible to use
This commit is contained in:
Sarjuuk
2013-01-19 22:42:26 +01:00
parent bfc0a684f0
commit e67d0a3dae
7 changed files with 730 additions and 701 deletions

View File

@@ -147,7 +147,7 @@ if (!defined('AOWOW_REVISION'))
if (!isset($castItems[$spl->Id]))
$castItems[$spl->Id] = new ItemList([['spellid_1', '=', $spl->Id], ['name', 'NOT LIKE', 'Scroll of Enchant%']]); // do not reuse enchantment scrolls
foreach ($castItems[$spl->Id]->itemList as $item)
foreach ($castItems[$spl->Id]->container as $item)
{
$ench['name'][] = Util::jsEscape(Util::localizedString($item->template, 'name'));
$ench['source'][] = -$item->Id;