aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author_manuel_ <manue.l@live.com.ar>2010-03-26 22:13:04 -0300
committer_manuel_ <manue.l@live.com.ar>2010-03-26 22:13:04 -0300
commit49c5be6d802a1686bfc281c959b5769b5d5d9daf (patch)
tree86d4f75d60f8d820624a6788758d0f3ce7c850e9
parent2796f0829755c95a9840a72f6898bcf736ff2427 (diff)
Improvement in npc_mageguard_dalaranAI.
--HG-- branch : trunk
-rw-r--r--src/scripts/northrend/dalaran.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/northrend/dalaran.cpp b/src/scripts/northrend/dalaran.cpp
index a5cfc6c84d4..903118444ae 100644
--- a/src/scripts/northrend/dalaran.cpp
+++ b/src/scripts/northrend/dalaran.cpp
@@ -74,7 +74,7 @@ struct npc_mageguard_dalaranAI : public Scripted_NoMovementAI
{
case 29254:
if (pPlayer->GetTeam() == HORDE) // Horde unit found in Alliance area
- if (Creature *pOutdoorNPC = GetClosestCreatureWithEntry(me, NPC_APPLEBOUGH_A, 32.0f))
+ if (GetClosestCreatureWithEntry(me, NPC_APPLEBOUGH_A, 32.0f))
{
if (me->isInBackInMap(pWho, 12.0f)) // In my line of sight, "outdoors", and behind me
DoCast(pWho, SPELL_TRESPASSER_A); // Teleport the Horde unit out
@@ -84,7 +84,7 @@ struct npc_mageguard_dalaranAI : public Scripted_NoMovementAI
break;
case 29255:
if (pPlayer->GetTeam() == ALLIANCE) // Alliance unit found in Horde area
- if (Creature *pOutdoorNPC = GetClosestCreatureWithEntry(me, NPC_SWEETBERRY_H, 32.0f))
+ if (GetClosestCreatureWithEntry(me, NPC_SWEETBERRY_H, 32.0f))
{
if (me->isInBackInMap(pWho, 12.0f)) // In my line of sight, "outdoors", and behind me
DoCast(pWho, SPELL_TRESPASSER_H); // Teleport the Alliance unit out