diff options
author | jackpoz <giacomopoz@gmail.com> | 2015-05-17 14:50:30 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2015-05-17 14:50:30 +0200 |
commit | b5cc8c5b17c96f281728ee08576acfff507d8039 (patch) | |
tree | 62cbec365fccd246e704e5d7370bf35989ce1a95 /src/server/game/Instances/InstanceScript.h | |
parent | 9842bb96d27edb9a6dea5ed49a300897953c73bc (diff) |
Scripts/ToC: Fix doors opening/closing during Dreadscale fight
Fix doors opening/closing during Dreadscale fight by sending a CloseDoor command instead of toggling the door state when Dreadscale resets its movement.
Note that bounding the door state to boss movement makes poor sense and should be changed. Other bosses in ToC have this logic and should be updated if they show the same bug.
Diffstat (limited to 'src/server/game/Instances/InstanceScript.h')
-rw-r--r-- | src/server/game/Instances/InstanceScript.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/Instances/InstanceScript.h b/src/server/game/Instances/InstanceScript.h index 41a9e9d0be1..be05a9f4495 100644 --- a/src/server/game/Instances/InstanceScript.h +++ b/src/server/game/Instances/InstanceScript.h @@ -191,6 +191,7 @@ class InstanceScript : public ZoneScript // Change active state of doors or buttons void DoUseDoorOrButton(ObjectGuid guid, uint32 withRestoreTime = 0, bool useAlternativeState = false); + void DoCloseDoorOrButton(ObjectGuid guid); // Respawns a GO having negative spawntimesecs in gameobject-table void DoRespawnGameObject(ObjectGuid guid, uint32 timeToDespawn = MINUTE); |