aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellEffects.cpp
diff options
context:
space:
mode:
authorShocker <shocker@freakz.ro>2011-10-07 09:19:37 -0700
committerShocker <shocker@freakz.ro>2011-10-07 09:19:37 -0700
commitac01eaa4e46334e43c2e582414867394a48dd770 (patch)
tree048c3d98dd7f758ab022c3445b310cd256105997 /src/server/game/Spells/SpellEffects.cpp
parente23fe1845fbe876f2ce50ebd25e3b135e5c2f1e2 (diff)
parent81c0a3a8479fef8ea52e1af19174bd777a5759e3 (diff)
Merge pull request #3391 from Bootz/master
Code-Stlye clean-ups
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rwxr-xr-xsrc/server/game/Spells/SpellEffects.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index e441b0b9da4..ee4b771f6fe 100755
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -3328,9 +3328,9 @@ void Spell::EffectDispel(SpellEffIndex effIndex)
int32 heal_amount = m_spellInfo->Effects[EFFECT_1].CalcValue();
m_caster->CastCustomSpell(m_caster, 19658, &heal_amount, NULL, NULL, true);
// Glyph of Felhunter
- if (Unit* pOwner = m_caster->GetOwner())
- if (pOwner->GetAura(56249))
- pOwner->CastCustomSpell(pOwner, 19658, &heal_amount, NULL, NULL, true);
+ if (Unit* owner = m_caster->GetOwner())
+ if (owner->GetAura(56249))
+ owner->CastCustomSpell(owner, 19658, &heal_amount, NULL, NULL, true);
}
}
@@ -6287,7 +6287,7 @@ void Spell::EffectQuestClear(SpellEffIndex effIndex)
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
- Player* pPlayer = unitTarget->ToPlayer();
+ Player* player = unitTarget->ToPlayer();
uint32 quest_id = m_spellInfo->Effects[effIndex].MiscValue;
@@ -6297,24 +6297,24 @@ void Spell::EffectQuestClear(SpellEffIndex effIndex)
return;
// Player has never done this quest
- if (pPlayer->GetQuestStatus(quest_id) == QUEST_STATUS_NONE)
+ if (player->GetQuestStatus(quest_id) == QUEST_STATUS_NONE)
return;
// remove all quest entries for 'entry' from quest log
for (uint8 slot = 0; slot < MAX_QUEST_LOG_SIZE; ++slot)
{
- uint32 quest = pPlayer->GetQuestSlotQuestId(slot);
+ uint32 quest = player->GetQuestSlotQuestId(slot);
if (quest == quest_id)
{
- pPlayer->SetQuestSlot(slot, 0);
+ player->SetQuestSlot(slot, 0);
// we ignore unequippable quest items in this case, its' still be equipped
- pPlayer->TakeQuestSourceItem(quest, false);
+ player->TakeQuestSourceItem(quest, false);
}
}
- pPlayer->RemoveActiveQuest(quest_id);
- pPlayer->RemoveRewardedQuest(quest_id);
+ player->RemoveActiveQuest(quest_id);
+ player->RemoveRewardedQuest(quest_id);
}
void Spell::EffectSendTaxi(SpellEffIndex effIndex)