Updated code for New config.

*enable/disable Minigob Manabonk
*Put the config option in the wrong part, changed from int to bool.
This commit is contained in:
talamortis
2018-08-05 00:50:24 +01:00
parent ccb3e8c2a4
commit cbf7bc2d3f
3 changed files with 3 additions and 3 deletions

View File

@@ -560,7 +560,7 @@ class npc_minigob_manabonk : public CreatureScript
void UpdateAI(uint32 diff)
{
if (CONFIG_MINIGOB_MANABONK == false)
if (!sWorld->getBoolConfig(CONFIG_MINIGOB_MANABONK))
return;
events.Update(diff);

View File

@@ -275,7 +275,7 @@ class npc_wg_queue : public CreatureScript
bool OnGossipHello(Player* player, Creature* creature)
{
if (CONFIG_WINTERGRASP_ENABLE == false)
if (!sWorld->getBoolConfig(CONFIG_MINIGOB_MANABONK))
return false;
if (creature->IsQuestGiver())