mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Item/Shared CD
* items should not share a cooldown with themself
This commit is contained in:
@@ -924,12 +924,15 @@ class ItemPage extends genericPage
|
|||||||
if ($cdCats)
|
if ($cdCats)
|
||||||
{
|
{
|
||||||
$conditions = array(
|
$conditions = array(
|
||||||
'OR',
|
['id', $this->typeId, '!'],
|
||||||
['spellCategory1', $cdCats],
|
[
|
||||||
['spellCategory2', $cdCats],
|
'OR',
|
||||||
['spellCategory3', $cdCats],
|
['spellCategory1', $cdCats],
|
||||||
['spellCategory4', $cdCats],
|
['spellCategory2', $cdCats],
|
||||||
['spellCategory5', $cdCats]
|
['spellCategory3', $cdCats],
|
||||||
|
['spellCategory4', $cdCats],
|
||||||
|
['spellCategory5', $cdCats],
|
||||||
|
]
|
||||||
);
|
);
|
||||||
$cdItems = new ItemList($conditions);
|
$cdItems = new ItemList($conditions);
|
||||||
if (!$cdItems->error)
|
if (!$cdItems->error)
|
||||||
|
|||||||
Reference in New Issue
Block a user