Improvement in npc_mageguard_dalaranAI.

--HG--
branch : trunk
This commit is contained in:
_manuel_
2010-03-26 22:13:04 -03:00
parent 2796f08297
commit 49c5be6d80
+2 -2
View File
@@ -74,7 +74,7 @@ struct npc_mageguard_dalaranAI : public Scripted_NoMovementAI
{ {
case 29254: case 29254:
if (pPlayer->GetTeam() == HORDE) // Horde unit found in Alliance area 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 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 DoCast(pWho, SPELL_TRESPASSER_A); // Teleport the Horde unit out
@@ -84,7 +84,7 @@ struct npc_mageguard_dalaranAI : public Scripted_NoMovementAI
break; break;
case 29255: case 29255:
if (pPlayer->GetTeam() == ALLIANCE) // Alliance unit found in Horde area 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 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 DoCast(pWho, SPELL_TRESPASSER_H); // Teleport the Alliance unit out