aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms/wetlands.cpp
diff options
context:
space:
mode:
authorSubv <s.v.h21@hotmail.com>2012-08-30 19:16:09 -0500
committerSubv <s.v.h21@hotmail.com>2012-08-30 19:16:09 -0500
commit554e88dd63c244f740d385d8a45d4e4405e951ba (patch)
treeabcd721b4f6e7e8a9189455386a3d3b0b9eac0e4 /src/server/scripts/EasternKingdoms/wetlands.cpp
parent532ddfcd402390a9caf3ac5863bba2f0db9d0efc (diff)
parente3d9768a50a3b2b700d65e0cc96e697a5c9d22dc (diff)
Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps
Diffstat (limited to 'src/server/scripts/EasternKingdoms/wetlands.cpp')
-rw-r--r--src/server/scripts/EasternKingdoms/wetlands.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/server/scripts/EasternKingdoms/wetlands.cpp b/src/server/scripts/EasternKingdoms/wetlands.cpp
index fac8fb51c2d..34e6e7c9ddf 100644
--- a/src/server/scripts/EasternKingdoms/wetlands.cpp
+++ b/src/server/scripts/EasternKingdoms/wetlands.cpp
@@ -60,12 +60,12 @@ public:
{
npc_tapoke_slim_jahnAI(Creature* creature) : npc_escortAI(creature) { }
- bool m_bFriendSummoned;
+ bool IsFriendSummoned;
void Reset()
{
if (!HasEscortState(STATE_ESCORT_ESCORTING))
- m_bFriendSummoned = false;
+ IsFriendSummoned = false;
}
void WaypointReached(uint32 waypointId)
@@ -83,14 +83,12 @@ public:
void EnterCombat(Unit* /*who*/)
{
- Player* player = GetPlayerForEscort();
-
- if (HasEscortState(STATE_ESCORT_ESCORTING) && !m_bFriendSummoned && player)
+ if (HasEscortState(STATE_ESCORT_ESCORTING) && !IsFriendSummoned && GetPlayerForEscort())
{
for (uint8 i = 0; i < 3; ++i)
DoCast(me, SPELL_CALL_FRIENDS, true);
- m_bFriendSummoned = true;
+ IsFriendSummoned = true;
}
}