mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Scenarios: Attempt to restore scenario state from completed encounter info
This commit is contained in:
@@ -80,12 +80,6 @@ InstanceScript::~InstanceScript()
|
||||
{
|
||||
}
|
||||
|
||||
void InstanceScript::SaveToDB()
|
||||
{
|
||||
if (InstanceScenario* scenario = instance->GetInstanceScenario())
|
||||
scenario->SaveToDB();
|
||||
}
|
||||
|
||||
bool InstanceScript::IsEncounterInProgress() const
|
||||
{
|
||||
for (std::vector<BossInfo>::const_iterator itr = bosses.begin(); itr != bosses.end(); ++itr)
|
||||
@@ -438,7 +432,6 @@ bool InstanceScript::SetBossState(uint32 id, EncounterState state)
|
||||
}
|
||||
|
||||
bossInfo->state = state;
|
||||
SaveToDB();
|
||||
if (dungeonEncounter)
|
||||
instance->UpdateInstanceLock({ dungeonEncounter, id, state });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user