From e05a358a1a508f0de6e36385b137bbb8a43d0de8 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 27 Dec 2020 20:00:08 +0100 Subject: [PATCH] [hellfire] WitchSellOk --- Source/stores.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/stores.cpp b/Source/stores.cpp index 7e803f32e..b8f0101d7 100644 --- a/Source/stores.cpp +++ b/Source/stores.cpp @@ -971,7 +971,15 @@ BOOL WitchSellOk(int i) if (pI->_itype == ITYPE_MISC) rv = TRUE; +#ifdef HELLFIRE + if (pI->_iMiscId > 29 && pI->_iMiscId < 41) + rv = FALSE; + if (pI->_iClass == ICLASS_QUEST) + rv = FALSE; + if (pI->_itype == ITYPE_STAFF && pI->_iSpell != SPL_NULL) +#else if (pI->_itype == ITYPE_STAFF) +#endif rv = TRUE; if (pI->IDidx >= IDI_FIRSTQUEST && pI->IDidx <= IDI_LASTQUEST) rv = FALSE;