Core/Scripts: Fix script text typo for Vorsha the Lasher

Author: Kaelima
Fixes issue #4421

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-11-09 10:45:11 +01:00
parent f5f80a5344
commit cca3231b92
+7 -6
View File
@@ -352,12 +352,13 @@ class npc_muglash : public CreatureScript
void EnterCombat(Unit* /*pWho*/) void EnterCombat(Unit* /*pWho*/)
{ {
if (HasEscortState(STATE_ESCORT_PAUSED)) if (Player* pPlayer = GetPlayerForEscort())
{ if (HasEscortState(STATE_ESCORT_PAUSED))
if (urand(0, 1)) {
DoScriptText(SAY_MUG_ON_GUARD, me); if (urand(0, 1))
return; DoScriptText(SAY_MUG_ON_GUARD, me, pPlayer);
} return;
}
} }
void Reset() void Reset()