aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorclick <click@gonnamakeyou.com>2011-07-02 22:18:03 +0200
committerclick <click@gonnamakeyou.com>2011-07-02 22:18:03 +0200
commitf91ee24184dffcd686d60dd07a1d19da3f5da818 (patch)
tree83d06dd9c18ca0d69c35e0937c14bdd83c3c98d9 /src/server/scripts/Spells
parent3ddc1cc4c40b757dd42b781552b483a047a6df64 (diff)
Core: Start cleaning up hungarian notation - Phase1: pCreature -> creature
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_quest.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp
index 8a782e4ca2b..2351d73d2a1 100644
--- a/src/server/scripts/Spells/spell_quest.cpp
+++ b/src/server/scripts/Spells/spell_quest.cpp
@@ -149,24 +149,24 @@ public:
{
if (GetCastItem())
if (Player* pCaster = GetCaster()->ToPlayer())
- if (Creature* pCreatureTarget = GetHitCreature())
+ if (Creature* creatureTarget = GetHitCreature())
{
uint32 uiNewEntry = 0;
switch (pCaster->GetTeam())
{
case HORDE:
- if (pCreatureTarget->GetEntry() == NPC_SICKLY_GAZELLE)
+ if (creatureTarget->GetEntry() == NPC_SICKLY_GAZELLE)
uiNewEntry = NPC_CURED_GAZELLE;
break;
case ALLIANCE:
- if (pCreatureTarget->GetEntry() == NPC_SICKLY_DEER)
+ if (creatureTarget->GetEntry() == NPC_SICKLY_DEER)
uiNewEntry = NPC_CURED_DEER;
break;
}
if (uiNewEntry)
{
- pCreatureTarget->UpdateEntry(uiNewEntry);
- pCreatureTarget->DespawnOrUnsummon(DESPAWN_TIME);
+ creatureTarget->UpdateEntry(uiNewEntry);
+ creatureTarget->DespawnOrUnsummon(DESPAWN_TIME);
}
}
}
@@ -500,17 +500,17 @@ public:
PrepareSpellScript(spell_q12459_seeds_of_natures_wrath_SpellScript)
void HandleDummy(SpellEffIndex /*effIndex*/)
{
- if (Creature* pCreatureTarget = GetHitCreature())
+ if (Creature* creatureTarget = GetHitCreature())
{
uint32 uiNewEntry = 0;
- switch (pCreatureTarget->GetEntry())
+ switch (creatureTarget->GetEntry())
{
case NPC_REANIMATED_FROSTWYRM: uiNewEntry = NPC_WEAK_REANIMATED_FROSTWYRM; break;
case NPC_TURGID: uiNewEntry = NPC_WEAK_TURGID; break;
case NPC_DEATHGAZE: uiNewEntry = NPC_WEAK_DEATHGAZE; break;
}
if (uiNewEntry)
- pCreatureTarget->UpdateEntry(uiNewEntry);
+ creatureTarget->UpdateEntry(uiNewEntry);
}
}