From cca3231b92604b275523d7468d891e3542a9eeb7 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Tue, 9 Nov 2010 10:45:11 +0100 Subject: Core/Scripts: Fix script text typo for Vorsha the Lasher Author: Kaelima Fixes issue #4421 --HG-- branch : trunk --- src/server/scripts/Kalimdor/ashenvale.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/server/scripts/Kalimdor/ashenvale.cpp b/src/server/scripts/Kalimdor/ashenvale.cpp index 567a5193f23..04a25637274 100644 --- a/src/server/scripts/Kalimdor/ashenvale.cpp +++ b/src/server/scripts/Kalimdor/ashenvale.cpp @@ -352,12 +352,13 @@ class npc_muglash : public CreatureScript void EnterCombat(Unit* /*pWho*/) { - if (HasEscortState(STATE_ESCORT_PAUSED)) - { - if (urand(0, 1)) - DoScriptText(SAY_MUG_ON_GUARD, me); - return; - } + if (Player* pPlayer = GetPlayerForEscort()) + if (HasEscortState(STATE_ESCORT_PAUSED)) + { + if (urand(0, 1)) + DoScriptText(SAY_MUG_ON_GUARD, me, pPlayer); + return; + } } void Reset() -- cgit v1.2.3