Core/Script: small improvement for quest "The Hunt is On". (#17537)

Reset emotestate when the event starts.
This commit is contained in:
SnapperRy
2016-07-07 21:55:52 +02:00
committed by Aokromes
parent 92523278b2
commit bde4176861

View File

@@ -2275,6 +2275,7 @@ public:
{
me->StopMoving();
me->SetUInt32Value(UNIT_NPC_FLAGS, 0);
me->SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
if (Player* player = ObjectAccessor::GetPlayer(*me, uiPlayerGUID))
me->SetFacingToObject(player);
uiEventTimer = 3000;
@@ -2303,7 +2304,6 @@ public:
switch (me->GetEntry())
{
case NPC_SALTY_JOHN_THORPE:
me->SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
Talk(SAY_HIDDEN_CULTIST_1);
uiEventTimer = 5000;
uiEventPhase = 2;