diff options
author | Spp <none@none> | 2010-04-07 23:56:35 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-07 23:56:35 +0200 |
commit | 46f0674e237dd8fe97ba4f0769e18b4adfce841b (patch) | |
tree | 4556d27751077c2ed37a445493ed93a4d08e981b /src/game/SpellAuraEffects.cpp | |
parent | 2454c290b84e04bd0321ca94e0be8c8dc7eedbe8 (diff) |
Code Style (game + scripts only):
">=" --> " >= " (when needed)
" >=" --> " >="
">= " --> ">= "
"<=" --> " <= " (when needed)
" <=" --> " <="
"<= " --> "<= "
" ==" --> " =="
"== " --> "== "
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuraEffects.cpp')
-rw-r--r-- | src/game/SpellAuraEffects.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/SpellAuraEffects.cpp b/src/game/SpellAuraEffects.cpp index f6086aa14bd..26d0089f998 100644 --- a/src/game/SpellAuraEffects.cpp +++ b/src/game/SpellAuraEffects.cpp @@ -957,7 +957,7 @@ void AuraEffect::ApplySpellMod(Unit * target, bool apply) if (AuraEffect * aurEff = aura->GetEffect(1)) aurEff->RecalculateAmount(); } - else //if (modOp == SPELLMOD_EFFECT3) + else //if (modOp == SPELLMOD_EFFECT3) { if (AuraEffect * aurEff = aura->GetEffect(2)) aurEff->RecalculateAmount(); @@ -1643,7 +1643,7 @@ void AuraEffect::PeriodicTick(Unit * target, Unit * caster) const if (target->GetMaxPower(power) == 0) return; - if (GetBase()->GetDuration() == -1 && target->GetPower(power) == target->GetMaxPower(power)) + if (GetBase()->GetDuration() == -1 && target->GetPower(power) == target->GetMaxPower(power)) return; uint32 amount = m_amount; @@ -1864,7 +1864,7 @@ void AuraEffect::PeriodicDummyTick(Unit * target, Unit * caster) const // TODO: this should use effect[1] of 51690 UnitList targets; { - // eff_radius == 0 + // eff_radius == 0 float radius = GetSpellMaxRange(GetSpellProto(), false); CellPair p(Trinity::ComputeCellPair(caster->GetPositionX(),caster->GetPositionY())); @@ -2058,7 +2058,7 @@ void AuraEffect::TriggerSpell(Unit * target, Unit * caster) const case 30427: { // move loot to player inventory and despawn target - if (caster->GetTypeId() == TYPEID_PLAYER && + if (caster->GetTypeId() == TYPEID_PLAYER && triggerTarget->GetTypeId() == TYPEID_UNIT && triggerTarget->ToCreature()->GetCreatureInfo()->type == CREATURE_TYPE_GAS_CLOUD) { |