aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuraEffects.cpp
diff options
context:
space:
mode:
authorSpp <none@none>2010-04-08 08:20:08 +0200
committerSpp <none@none>2010-04-08 08:20:08 +0200
commit4635fbc0201846721287a1eb730491262237babd (patch)
tree5b02b41f0099fd9d3af7f3a826ef0ca6dfe80748 /src/game/SpellAuraEffects.cpp
parent46f0674e237dd8fe97ba4f0769e18b4adfce841b (diff)
Code Style (game + scripts only):
"!=" --> " != " (when needed) " !=" --> " !=" "!= " --> "!= " --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellAuraEffects.cpp')
-rw-r--r--src/game/SpellAuraEffects.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game/SpellAuraEffects.cpp b/src/game/SpellAuraEffects.cpp
index 26d0089f998..4cdc09492fa 100644
--- a/src/game/SpellAuraEffects.cpp
+++ b/src/game/SpellAuraEffects.cpp
@@ -868,7 +868,7 @@ void AuraEffect::ChangeAmount(int32 newAmount, bool mark)
{
Unit * caster = GetCaster();
// Reapply if amount change
- if (newAmount!=GetAmount())
+ if (newAmount != GetAmount())
{
UnitList targetList;
GetTargetList(targetList);
@@ -1322,7 +1322,7 @@ void AuraEffect::PeriodicTick(Unit * target, Unit * caster) const
return;
if (GetSpellProto()->Effect[GetEffIndex()] == SPELL_EFFECT_PERSISTENT_AREA_AURA &&
- caster->SpellHitResult(target,GetSpellProto(),false)!=SPELL_MISS_NONE)
+ caster->SpellHitResult(target,GetSpellProto(),false) != SPELL_MISS_NONE)
return;
// Check for immune
@@ -1830,7 +1830,7 @@ void AuraEffect::PeriodicDummyTick(Unit * target, Unit * caster) const
{
// Converts up to 10 rage per second into health for $d. Each point of rage is converted into ${$m2/10}.1% of max health.
// Should be manauser
- if (target->getPowerType()!=POWER_RAGE)
+ if (target->getPowerType() != POWER_RAGE)
break;
uint32 rage = target->GetPower(POWER_RAGE);
// Nothing todo
@@ -2047,7 +2047,7 @@ void AuraEffect::TriggerSpell(Unit * target, Unit * caster) const
return;
// Inoculate Nestlewood Owlkin
case 29528:
- if (triggerTarget->GetTypeId()!=TYPEID_UNIT)// prevent error reports in case ignored player target
+ if (triggerTarget->GetTypeId() != TYPEID_UNIT)// prevent error reports in case ignored player target
return;
break;
// Feed Captured Animal
@@ -2241,7 +2241,7 @@ void AuraEffect::TriggerSpell(Unit * target, Unit * caster) const
triggerCaster->CastSpell(triggerTarget, triggeredSpellInfo, true, 0, this);
sLog.outDebug("AuraEffect::TriggerSpell: Spell %u Trigger %u",GetId(), triggeredSpellInfo->Id);
}
- else if (target->GetTypeId()!=TYPEID_UNIT || !sScriptMgr.EffectDummyCreature(caster, GetId(), GetEffIndex(), triggerTarget->ToCreature()))
+ else if (target->GetTypeId() != TYPEID_UNIT || !sScriptMgr.EffectDummyCreature(caster, GetId(), GetEffIndex(), triggerTarget->ToCreature()))
sLog.outError("AuraEffect::TriggerSpell: Spell %u have 0 in EffectTriggered[%d], not handled custom case?",GetId(),GetEffIndex());
}
@@ -2709,7 +2709,7 @@ void AuraEffect::HandlePhase(AuraApplication const * aurApp, uint8 mode, bool ap
target->SetPhaseMask((apply) ? GetMiscValue() : PHASEMASK_NORMAL,false);
// need triggering visibility update base at phase update of not GM invisible (other GMs anyway see in any phases)
- if (target->GetVisibility()!=VISIBILITY_OFF)
+ if (target->GetVisibility() != VISIBILITY_OFF)
target->SetVisibility(target->GetVisibility());
}
@@ -5043,7 +5043,7 @@ void AuraEffect::HandleAuraModRangedAttackPower(AuraApplication const * aurApp,
Unit * target = aurApp->GetTarget();
- if ((target->getClassMask() & CLASSMASK_WAND_USERS)!=0)
+ if ((target->getClassMask() & CLASSMASK_WAND_USERS) != 0)
return;
target->HandleStatModifier(UNIT_MOD_ATTACK_POWER_RANGED, TOTAL_VALUE, float(GetAmount()), apply);
@@ -5067,7 +5067,7 @@ void AuraEffect::HandleAuraModRangedAttackPowerPercent(AuraApplication const * a
Unit * target = aurApp->GetTarget();
- if ((target->getClassMask() & CLASSMASK_WAND_USERS)!=0)
+ if ((target->getClassMask() & CLASSMASK_WAND_USERS) != 0)
return;
//UNIT_FIELD_RANGED_ATTACK_POWER_MULTIPLIER = multiplier - 1