diff options
| author | click <click@gonnamakeyou.com> | 2011-07-02 22:52:42 +0200 |
|---|---|---|
| committer | click <click@gonnamakeyou.com> | 2011-07-02 22:52:42 +0200 |
| commit | 169f5da8c3120da98c01ebd8117f7aa527106206 (patch) | |
| tree | 71d19f9b87cc83d705bca3cb76680c2d66446965 /src/server/scripts/Spells | |
| parent | f91ee24184dffcd686d60dd07a1d19da3f5da818 (diff) | |
Core: Cleaning up hungarian notation - Phase2: pPlayer -> player
Diffstat (limited to 'src/server/scripts/Spells')
| -rw-r--r-- | src/server/scripts/Spells/spell_hunter.cpp | 4 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_quest.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp index acf96f4e0a7..0cdeaf82c55 100644 --- a/src/server/scripts/Spells/spell_hunter.cpp +++ b/src/server/scripts/Spells/spell_hunter.cpp @@ -381,10 +381,10 @@ public: void HandleUpdatePeriodic(AuraEffect * aurEff) { Unit* pTarget = GetUnitOwner(); - if (Player* pPlayerTarget = pTarget->ToPlayer()) + if (Player* playerTarget = pTarget->ToPlayer()) { int32 baseAmount = aurEff->GetBaseAmount(); - int32 amount = pPlayerTarget->isMoving() ? + int32 amount = playerTarget->isMoving() ? pTarget->CalculateSpellDamage(pTarget, GetSpellProto(), aurEff->GetEffIndex(), &baseAmount) : aurEff->GetAmount() - 1; aurEff->SetAmount(amount); diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp index 2351d73d2a1..aaa7186f2ac 100644 --- a/src/server/scripts/Spells/spell_quest.cpp +++ b/src/server/scripts/Spells/spell_quest.cpp @@ -704,12 +704,12 @@ public: void HandleDummy(SpellEffIndex /*effIndex*/) { Unit* pCaster = GetCaster(); - if (Player* pPlayer = pCaster->ToPlayer()) + if (Player* player = pCaster->ToPlayer()) { if(Creature* pTarget = GetHitCreature()) { - pPlayer->CastSpell(pPlayer, SPELL_TRIGGER_AID_OF_THE_EARTHEN, true, NULL); - pPlayer->KilledMonsterCredit(NPC_FALLEN_EARTHEN_DEFENDER, 0); + player->CastSpell(player, SPELL_TRIGGER_AID_OF_THE_EARTHEN, true, NULL); + player->KilledMonsterCredit(NPC_FALLEN_EARTHEN_DEFENDER, 0); pTarget->DespawnOrUnsummon(); } } |
