aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-11-09 10:45:11 +0100
committerMachiavelli <none@none>2010-11-09 10:45:11 +0100
commitcca3231b92604b275523d7468d891e3542a9eeb7 (patch)
tree76ecbe3ad2bf1ccf5ba3db2ca29b90e7b6c73642 /src
parentf5f80a53446867924118437a2dec39238f7d041e (diff)
Core/Scripts: Fix script text typo for Vorsha the Lasher
Author: Kaelima Fixes issue #4421 --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Kalimdor/ashenvale.cpp13
1 files changed, 7 insertions, 6 deletions
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()