aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorM'Dic <joshua.lee.betts@gmail.com>2022-09-08 12:19:15 -0400
committerGitHub <noreply@github.com>2022-09-08 18:19:15 +0200
commit5ec5e1e1d0bfd586f934de7716ac88abaaa972b1 (patch)
tree8ce77b52f41eda74b1d640ca54bb92680b53eb39 /src
parent3306a4d06cc557967c23adcc60c2e3257811b324 (diff)
Scripts/Events: Ironforge hourly bell event correction (#28234)
Changes go_bells script to play the BellTollDwarfGnome once at every hour. References: https://www.reddit.com/r/classicwow/comments/ou0rw5/question_what_is_that_super_loud_bellowing/ cherry-pick commit (Hourly bell: Dwarf horn sound should only play once vmangos/core#1569) Co-authored-by: schell244 <9536270+schell244@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/World/go_scripts.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp
index e28384c8d4d..ef4c44d10a0 100644
--- a/src/server/scripts/World/go_scripts.cpp
+++ b/src/server/scripts/World/go_scripts.cpp
@@ -1181,6 +1181,12 @@ public:
_rings = 12;
}
+ // Dwarf hourly horn should only play a single time, each time the next hour begins.
+ if (_soundId == BELLTOLLDWARFGNOME)
+ {
+ _rings = 1;
+ }
+
for (auto i = 0; i < _rings; ++i)
_events.ScheduleEvent(EVENT_RING_BELL, Seconds(i * 4 + 1));
}