Core/Scripts: Tom Hegger must target player in Say text (#17395)

File: zone_borean_tundra.cpp
Script: npc_hidden_cultist
Quest: The Hunt is On, 11794
NPC:  Tom Hegger, 25827

Before this change, Tom Hegger does not target player when saying his
aggro text "You don't know who you're messing with, $c!   Death beckons!"
and hence the text $c will be shown instead of the player class.
(cherry picked from commit 736843fbb5)
This commit is contained in:
tkrokli
2016-06-17 13:28:26 +02:00
committed by joschiwald
parent d8911a9dd6
commit 604b8bfab1

View File

@@ -2311,7 +2311,8 @@ public:
uiEventPhase = 2;
break;
case NPC_TOM_HEGGER:
Talk(SAY_HIDDEN_CULTIST_3);
if (Player* player = ObjectAccessor::GetPlayer(*me, uiPlayerGUID))
Talk(SAY_HIDDEN_CULTIST_3, player);
uiEventTimer = 5000;
uiEventPhase = 2;
break;