Core/InstanceScript: Refactored door types to reflect its behavior

Port From (https://github.com/TrinityCore/TrinityCore/commit/0e2f04172864e3cff2b5559ac89ded23ade5f92e)
This commit is contained in:
hondacrx
2024-02-02 15:04:43 -05:00
parent c9a11f3ead
commit d9e524a657
10 changed files with 61 additions and 56 deletions
@@ -4,6 +4,7 @@
using Game.Entities;
using Game.Maps;
using Game.Scripting;
using Framework.Constants;
namespace Scripts.Argus.AntorusTheBurningThrone
{
@@ -57,8 +58,8 @@ namespace Scripts.Argus.AntorusTheBurningThrone
public static DoorData[] doorData =
{
new(GameObjectIds.Collision, DataTypes.GarothiWorldbreaker, Framework.Constants.DoorType.Passage),
new(GameObjectIds.Rock, DataTypes.GarothiWorldbreaker, Framework.Constants.DoorType.Passage)
new(GameObjectIds.Collision, DataTypes.GarothiWorldbreaker, EncounterDoorBehavior.OpenWhenDone),
new(GameObjectIds.Rock, DataTypes.GarothiWorldbreaker, EncounterDoorBehavior.OpenWhenDone)
};
public static DungeonEncounterData[] encounters =