Misc fixes

This commit is contained in:
hondacrx
2017-09-06 12:00:21 -04:00
parent 38b6c72499
commit 36a74cf873
18 changed files with 161 additions and 312 deletions
+2
View File
@@ -1657,6 +1657,8 @@ namespace Scripts.Spells.Items
{
void HandleProc(ProcEventInfo procInfo)
{
PreventDefaultAction();
Unit caster = procInfo.GetActor();
Unit target = GetCaster();
if (!caster || !target)
+2 -6
View File
@@ -1105,17 +1105,13 @@ namespace Scripts.World
if (!Global.GameEventMgr.IsHolidayActive(HolidayIds.FireFestival))
return;
var players = go.GetMap().GetPlayers();
foreach (var player in players)
var playersNearby = go.GetPlayerListInGrid(go.GetMap().GetVisibilityRange());
foreach (var player in playersNearby)
{
if (player.GetTeam() == Team.Horde)
{
go.PlayDirectMusic(12325, player);
}
else
{
go.PlayDirectMusic(12319, player);
}
}
task.Repeat(TimeSpan.FromSeconds(5)); // Every 5 second's SMSG_PLAY_MUSIC packet (PlayDirectMusic) is pushed to the client (sniffed value)