aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuraEffects.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2010-01-10 02:12:02 +0100
committerQAston <none@none>2010-01-10 02:12:02 +0100
commitc65aa45bc64f7baa35c348a34f05d1d62a02c31a (patch)
treeb02368e5ed613866edc14b0d592660e9e02bb158 /src/game/SpellAuraEffects.cpp
parent8417a4fee32d0bedce1d33156c2337326b9b82ea (diff)
*Tabs to spaces
*Fix a type in CreatureEventAI.cpp from last rev --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellAuraEffects.cpp')
-rw-r--r--src/game/SpellAuraEffects.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/SpellAuraEffects.cpp b/src/game/SpellAuraEffects.cpp
index e9aa7b194ac..952ae649214 100644
--- a/src/game/SpellAuraEffects.cpp
+++ b/src/game/SpellAuraEffects.cpp
@@ -385,11 +385,11 @@ void AuraEffect::GetTargetList(std::list<Unit *> & targetList) const
{
Aura::ApplicationMap const & targetMap = GetBase()->GetApplicationMap();
// remove all targets which were not added to new list - they no longer deserve area aura
- for (Aura::ApplicationMap::const_iterator appIter = targetMap.begin(); appIter != targetMap.end(); appIter++)
- {
+ for (Aura::ApplicationMap::const_iterator appIter = targetMap.begin(); appIter != targetMap.end(); appIter++)
+ {
if(appIter->second->HasEffect(GetEffIndex()))
targetList.push_back(appIter->second->GetTarget());
- }
+ }
}
int32 AuraEffect::CalculateAmount(Unit * caster)
@@ -397,11 +397,11 @@ int32 AuraEffect::CalculateAmount(Unit * caster)
int32 amount;
// default amount calculation
if(caster)
- amount = caster->CalculateSpellDamage(m_spellProto, m_effIndex, m_baseAmount, NULL);
+ amount = caster->CalculateSpellDamage(m_spellProto, m_effIndex, m_baseAmount, NULL);
else
amount = m_baseAmount + m_spellProto->EffectBaseDice[m_effIndex];
- // check item enchant aura cast
+ // check item enchant aura cast
if(!amount && caster)
if(uint64 itemGUID = GetBase()->GetCastItemGUID())
if(Player *playerCaster = dynamic_cast<Player*>(caster))