feat(Core/Config): Parameter to set all creatures with WP movement active (#2615)

This commit is contained in:
Stoabrogga
2020-02-23 14:08:42 +01:00
committed by GitHub
parent d387bdc695
commit ed243d6911
6 changed files with 22 additions and 7 deletions

View File

@@ -2217,7 +2217,11 @@ bool Creature::LoadCreaturesAddon(bool reload)
//Load Path
if (cainfo->path_id != 0)
{
if (sWorld->getBoolConfig(CONFIG_SET_ALL_CREATURES_WITH_WAYPOINT_MOVEMENT_ACTIVE))
setActive(true);
m_path_id = cainfo->path_id;
}
if (!cainfo->auras.empty())
{