Item/Shared CD

* items should not share a cooldown with themself
This commit is contained in:
Sarjuuk
2017-02-16 19:50:25 +01:00
parent 8de6296878
commit 62a4bcf2d2

View File

@@ -924,12 +924,15 @@ class ItemPage extends genericPage
if ($cdCats) if ($cdCats)
{ {
$conditions = array( $conditions = array(
['id', $this->typeId, '!'],
[
'OR', 'OR',
['spellCategory1', $cdCats], ['spellCategory1', $cdCats],
['spellCategory2', $cdCats], ['spellCategory2', $cdCats],
['spellCategory3', $cdCats], ['spellCategory3', $cdCats],
['spellCategory4', $cdCats], ['spellCategory4', $cdCats],
['spellCategory5', $cdCats] ['spellCategory5', $cdCats],
]
); );
$cdItems = new ItemList($conditions); $cdItems = new ItemList($conditions);
if (!$cdItems->error) if (!$cdItems->error)