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

@@ -160,6 +160,7 @@ enum WorldBoolConfigs
CONFIG_WARDEN_ENABLED,
CONFIG_ENABLE_CONTINENT_TRANSPORT,
CONFIG_ENABLE_CONTINENT_TRANSPORT_PRELOADING,
CONFIG_MINIGOB_MANABONK,
BOOL_CONFIG_VALUE_COUNT
};
@@ -326,7 +327,6 @@ enum WorldIntConfigs
CONFIG_WARDEN_NUM_MEM_CHECKS,
CONFIG_WARDEN_NUM_OTHER_CHECKS,
CONFIG_BIRTHDAY_TIME,
CONFIG_MINIGOB_MANABONK,
INT_CONFIG_VALUE_COUNT
};

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())