We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e58b802 commit b4020faCopy full SHA for b4020fa
src/server/game/Entities/Object/Object.cpp
@@ -1825,8 +1825,12 @@ void WorldObject::SetMap(Map* map)
1825
m_mapId = map->GetId();
1826
m_InstanceId = map->GetInstanceId();
1827
#ifdef ELUNA
1828
+ // in multistate mode, always reset in case Eluna is not active on the new map
1829
+ if (elunaEvents && !sElunaConfig->IsElunaCompatibilityMode())
1830
+ elunaEvents.reset();
1831
+
1832
if (Eluna* e = map->GetEluna())
- if (!elunaEvents || (elunaEvents && !sElunaConfig->IsElunaCompatibilityMode()))
1833
+ if (!elunaEvents)
1834
elunaEvents = std::make_unique<ElunaEventProcessor>(e, this);
1835
#endif
1836
if (IsStoredInWorldObjectGridContainer())
0 commit comments