Core/Scenarios: Attempt to restore scenario state from completed encounter info

Port From (https://github.com/TrinityCore/TrinityCore/commit/1e99011edf5e74ef51a7b6f84ca0529e5dbf2492)
This commit is contained in:
hondacrx
2022-10-04 14:46:27 -04:00
parent 50e17a01ef
commit 7a65cf1434
5 changed files with 60 additions and 128 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ namespace Game.Scenarios
{
ScenarioManager() { }
public InstanceScenario CreateInstanceScenario(Map map, int team)
public InstanceScenario CreateInstanceScenario(InstanceMap map, int team)
{
var dbData = _scenarioDBData.LookupByKey(Tuple.Create(map.GetId(), (byte)map.GetDifficultyID()));
// No scenario registered for this map and difficulty in the database