Implement instance modes, full-group departures and mandatory flight regions

This commit is contained in:
Nico committed 2026-10-30 02:15:06 +01:00
1 parent bc8f171055
commit 373818628d
40 files changed
+1838 -82

No files matched your search

@@ -508,6 +508,14 @@ bool ClientlessLuaEngine::LoadAdventureProfile(Player* player)
lua_pop(_state,1);
}
lua_pop(_state,1);
// All autonomous level60+ characters can fly. Legacy/manual profiles get
// the same minimum capability as generated profiles, retaining preferences.
if(profile.AutonomousBehavior && (profile.Level?profile.Level:player->getLevel())>=60)
{
profile.CanFreeFly=true;
if(profile.FlightMounts.empty())
profile.FlightMounts.push_back({player->GetTeamId()==TEAM_ALLIANCE?32235u:32243u,1});
}
uint32 const guid = player->GetGUID().GetCounter();
_profiles[guid] = std::move(profile);
ClientlessAdventureProfile const& stored = _profiles.at(guid);