aboutsummaryrefslogtreecommitdiff
path: root/src/scripts/northrend/icecrown.cpp
diff options
context:
space:
mode:
authorRat <none@none>2010-04-14 23:07:41 +0200
committerRat <none@none>2010-04-14 23:07:41 +0200
commit6bcb297de4d5231373a3e2bf2b40e527b91cdf46 (patch)
treea5379b14ceb2ac9e7273143b334bfc693e2ef042 /src/scripts/northrend/icecrown.cpp
parentcc262e1cde544eb7cf643df79fa00c9f34af4785 (diff)
*code cleanup
*totally destroyed m_creature, use "me" for future coding --HG-- branch : trunk
Diffstat (limited to 'src/scripts/northrend/icecrown.cpp')
-rw-r--r--src/scripts/northrend/icecrown.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/scripts/northrend/icecrown.cpp b/src/scripts/northrend/icecrown.cpp
index eb72b7f5cbf..aa32cd957b1 100644
--- a/src/scripts/northrend/icecrown.cpp
+++ b/src/scripts/northrend/icecrown.cpp
@@ -206,18 +206,18 @@ struct npc_argent_valiantAI : public ScriptedAI
if (uiType != POINT_MOTION_TYPE)
return;
- m_creature->setFaction(14);
+ me->setFaction(14);
}
void DamageTaken(Unit* pDoneBy, uint32& uiDamage)
{
- if (uiDamage > m_creature->GetHealth() && pDoneBy->GetTypeId() == TYPEID_PLAYER)
+ if (uiDamage > me->GetHealth() && pDoneBy->GetTypeId() == TYPEID_PLAYER)
{
uiDamage = 0;
CAST_PLR(pDoneBy)->KilledMonsterCredit(NPC_ARGENT_VALIANT_CREDIT,0);
- m_creature->setFaction(35);
- m_creature->ForcedDespawn(5000);
- m_creature->SetHomePosition(m_creature->GetPositionX(),m_creature->GetPositionY(),m_creature->GetPositionZ(),m_creature->GetOrientation());
+ me->setFaction(35);
+ me->ForcedDespawn(5000);
+ me->SetHomePosition(me->GetPositionX(),me->GetPositionY(),me->GetPositionZ(),me->GetOrientation());
EnterEvadeMode();
}
}
@@ -265,7 +265,7 @@ struct npc_argent_tournament_postAI : public ScriptedAI
void UpdateAI(const uint32 uiDiff)
{
- if (m_creature->IsNonMeleeSpellCasted(false))
+ if (me->IsNonMeleeSpellCasted(false))
return;
if (Creature* pTarget = me->FindNearestCreature(NPC_GORMOK_THE_IMPALER, 6.0f))