mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
Enable SourceType of 8 for Disables table to disable LFG/LFD maps (#1076)
This commit is contained in:
@@ -30,7 +30,7 @@ namespace
|
||||
|
||||
DisableMap m_DisableMap;
|
||||
|
||||
uint8 MAX_DISABLE_TYPES = 8;
|
||||
uint8 MAX_DISABLE_TYPES = 9;
|
||||
}
|
||||
|
||||
void LoadDisables()
|
||||
@@ -123,6 +123,7 @@ void LoadDisables()
|
||||
case DISABLE_TYPE_QUEST:
|
||||
break;
|
||||
case DISABLE_TYPE_MAP:
|
||||
case DISABLE_TYPE_LFG_MAP:
|
||||
{
|
||||
MapEntry const* mapEntry = sMapStore.LookupEntry(entry);
|
||||
if (!mapEntry)
|
||||
@@ -320,6 +321,7 @@ bool IsDisabledFor(DisableType type, uint32 entry, Unit const* unit, uint8 flags
|
||||
break;
|
||||
}
|
||||
case DISABLE_TYPE_MAP:
|
||||
case DISABLE_TYPE_LFG_MAP:
|
||||
if (Player const* player = unit->ToPlayer())
|
||||
{
|
||||
MapEntry const* mapEntry = sMapStore.LookupEntry(entry);
|
||||
|
||||
Reference in New Issue
Block a user