Misc Fixes

This commit is contained in:
hondacrx
2017-08-07 16:15:20 -04:00
parent 473cea0f06
commit b494d51816
13 changed files with 49 additions and 42 deletions
+2 -2
View File
@@ -626,14 +626,14 @@ namespace Game
Unit unit = Global.ObjAccessor.GetUnit(GetPlayer(), packet.Target);
GetPlayer().UpdateCriteria(CriteriaTypes.DoEmote, (uint)packet.SoundIndex, 0, 0, unit);
GetPlayer().UpdateCriteria(CriteriaTypes.DoEmote, (uint)packet.EmoteID, 0, 0, unit);
// Send scripted event call
if (unit)
{
Creature creature = unit.ToCreature();
if (creature)
creature.GetAI().ReceiveEmote(GetPlayer(), (TextEmotes)packet.SoundIndex);
creature.GetAI().ReceiveEmote(GetPlayer(), (TextEmotes)packet.EmoteID);
}
}