Skip to content

Commit 91038de

Browse files
committed
Update methods for core refactor
1 parent 8c8421d commit 91038de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

methods/CMangos/WorldObjectMethods.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,8 @@ namespace LuaWorldObject
10621062
if (player)
10631063
#if ELUNA_EXPANSION == EXP_CATA
10641064
obj->PlayDirectSound(soundId, player);
1065+
#elif ELUNA_EXPANSION == EXP_TBC
1066+
obj->PlayDirectSound(soundId, PlayPacketParameters(PlayPacketSettings::TARGET, (Player const*)player));
10651067
#else
10661068
obj->PlayDirectSound(soundId, PlayPacketParameters(PLAY_TARGET, (Player const*)player));
10671069
#endif
@@ -1092,6 +1094,8 @@ namespace LuaWorldObject
10921094
if (player)
10931095
#if ELUNA_EXPANSION == EXP_CATA
10941096
obj->PlayDistanceSound(soundId, player);
1097+
#elif ELUNA_EXPANSION == EXP_TBC
1098+
obj->PlayDistanceSound(soundId, PlayPacketParameters(PlayPacketSettings::TARGET, (Player const*)player));
10951099
#else
10961100
obj->PlayDistanceSound(soundId, PlayPacketParameters(PLAY_TARGET, (Player const*)player));
10971101
#endif

0 commit comments

Comments
 (0)