From 62a4bcf2d2eecd026b4018d64116656ce7e90738 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Thu, 16 Feb 2017 19:50:25 +0100 Subject: [PATCH] Item/Shared CD * items should not share a cooldown with themself --- pages/item.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pages/item.php b/pages/item.php index 32ac33d0..c67c1d93 100644 --- a/pages/item.php +++ b/pages/item.php @@ -924,12 +924,15 @@ class ItemPage extends genericPage if ($cdCats) { $conditions = array( - 'OR', - ['spellCategory1', $cdCats], - ['spellCategory2', $cdCats], - ['spellCategory3', $cdCats], - ['spellCategory4', $cdCats], - ['spellCategory5', $cdCats] + ['id', $this->typeId, '!'], + [ + 'OR', + ['spellCategory1', $cdCats], + ['spellCategory2', $cdCats], + ['spellCategory3', $cdCats], + ['spellCategory4', $cdCats], + ['spellCategory5', $cdCats], + ] ); $cdItems = new ItemList($conditions); if (!$cdItems->error)