Scripts/Events: Ironforge hourly bell event correction

Port From (https://github.com/TrinityCore/TrinityCore/commit/400b8e31926eabbd9aa2daaf3c920abafec4f299)
This commit is contained in:
hondacrx
2022-10-01 16:37:50 -04:00
parent fa4a96769e
commit 16a7b3bb79
+4 -1
View File
@@ -261,7 +261,6 @@ namespace Scripts.World.GameObjects
//Bellhourlymisc
public const uint GameEventHourlyBells = 73;
public const uint EventRingBell = 1;
}
[Script]
@@ -824,6 +823,10 @@ namespace Scripts.World.GameObjects
if (_rings == 0) // 00:00 and 12:00
_rings = 12;
// Dwarf hourly horn should only play a single time, each time the next hour begins.
if (_soundId == SoundIds.BellTolldwarfgnome)
_rings = 1;
for (var i = 0; i < _rings; ++i)
_scheduler.Schedule(TimeSpan.FromSeconds(i * 4 + 1), task => me.PlayDirectSound(_soundId));
}