aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AuctionHouse/AuctionHouseMgr.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/server/game/AuctionHouse/AuctionHouseMgr.cpp b/src/server/game/AuctionHouse/AuctionHouseMgr.cpp
index f4699f0519e..6d8e695f02a 100644
--- a/src/server/game/AuctionHouse/AuctionHouseMgr.cpp
+++ b/src/server/game/AuctionHouse/AuctionHouseMgr.cpp
@@ -544,8 +544,16 @@ void AuctionHouseObject::BuildListAuctionItems(WorldPacket& data, Player* player
if (levelmin != 0x00 && (proto->RequiredLevel < levelmin || (levelmax != 0x00 && proto->RequiredLevel > levelmax)))
continue;
- if (usable != 0x00 && player->CanUseItem(item) != EQUIP_ERR_OK)
- continue;
+ if (usable != 0x00)
+ {
+ if (player->CanUseItem(item) != EQUIP_ERR_OK)
+ continue;
+
+ if (proto->Class == ITEM_CLASS_RECIPE)
+ if (SpellEntry const* spell = sSpellStore.LookupEntry(proto->Spells[0].SpellId))
+ if (player->HasSpell(spell->EffectTriggerSpell[EFFECT_INDEX_0]))
+ continue;
+ }
// Allow search by suffix (ie: of the Monkey) or partial name (ie: Monkey)
// No need to do any of this if no search term was entered