diff options
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(); } } |
