aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/World
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2011-09-15 14:08:17 +0200
committerSpp <spp@jorge.gr>2011-09-15 14:12:57 +0200
commitaf05915b9e36497eda8f2f061c29ffee0c8042b6 (patch)
treefa9e603e2a8d90b9842148ee9fa767f475566b67 /src/server/scripts/World
parent9006e4e8dc1c2cbf30303dd2d5e34f3d9a2380a9 (diff)
[Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions)
Diffstat (limited to 'src/server/scripts/World')
-rwxr-xr-xsrc/server/scripts/World/achievement_scripts.cpp2
-rw-r--r--src/server/scripts/World/go_scripts.cpp2
-rw-r--r--src/server/scripts/World/guards.cpp12
-rw-r--r--src/server/scripts/World/mob_generic_creature.cpp14
4 files changed, 15 insertions, 15 deletions
diff --git a/src/server/scripts/World/achievement_scripts.cpp b/src/server/scripts/World/achievement_scripts.cpp
index af966e3e22e..2dbbd949526 100755
--- a/src/server/scripts/World/achievement_scripts.cpp
+++ b/src/server/scripts/World/achievement_scripts.cpp
@@ -34,7 +34,7 @@ class achievement_storm_glory : public AchievementCriteriaScript
if (source->GetBattlegroundTypeId() != BATTLEGROUND_EY)
return false;
- Battleground *pEotS = source->GetBattleground();
+ Battleground* pEotS = source->GetBattleground();
if (!pEotS)
return false;
diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp
index d99501f6aaa..0bda63b4177 100644
--- a/src/server/scripts/World/go_scripts.cpp
+++ b/src/server/scripts/World/go_scripts.cpp
@@ -936,7 +936,7 @@ public:
if (!caster || caster->GetTypeId() != TYPEID_PLAYER)
return true;
- if (!player->IsInSameRaidWith(static_cast<Player* >(caster)))
+ if (!player->IsInSameRaidWith(static_cast<Player*>(caster)))
return true;
// Repeating this at every use is ugly and inefficient. But as long as we don't have proper
diff --git a/src/server/scripts/World/guards.cpp b/src/server/scripts/World/guards.cpp
index 6c71f3c2167..a40405d3021 100644
--- a/src/server/scripts/World/guards.cpp
+++ b/src/server/scripts/World/guards.cpp
@@ -83,7 +83,7 @@ public:
if (buffTimer <= diff)
{
//Find a spell that targets friendly and applies an aura (these are generally buffs)
- SpellInfo const *info = SelectSpell(me, 0, 0, SELECT_TARGET_ANY_FRIEND, 0, 0, 0, 0, SELECT_EFFECT_AURA);
+ SpellInfo const* info = SelectSpell(me, 0, 0, SELECT_TARGET_ANY_FRIEND, 0, 0, 0, 0, SELECT_EFFECT_AURA);
if (info && !globalCooldown)
{
@@ -111,7 +111,7 @@ public:
if (me->IsWithinMeleeRange(me->getVictim()))
{
bool healing = false;
- SpellInfo const *info = NULL;
+ SpellInfo const* info = NULL;
//Select a healing spell if less than 30% hp
if (me->HealthBelowPct(30))
@@ -147,7 +147,7 @@ public:
if (!me->IsNonMeleeSpellCasted(false))
{
bool healing = false;
- SpellInfo const *info = NULL;
+ SpellInfo const* info = NULL;
//Select a healing spell if less than 30% hp ONLY 33% of the time
if (me->HealthBelowPct(30) && 33 > urand(0, 99))
@@ -228,7 +228,7 @@ public:
uint32 buffTimer;
};
- CreatureAI *GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const
{
return new guard_genericAI(creature);
}
@@ -301,7 +301,7 @@ public:
bool canTeleport;
};
- CreatureAI *GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const
{
return new guard_shattrath_scryerAI(creature);
}
@@ -365,7 +365,7 @@ public:
bool canTeleport;
};
- CreatureAI *GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const
{
return new guard_shattrath_aldorAI(creature);
}
diff --git a/src/server/scripts/World/mob_generic_creature.cpp b/src/server/scripts/World/mob_generic_creature.cpp
index 5cb707bb2a4..92909f3885a 100644
--- a/src/server/scripts/World/mob_generic_creature.cpp
+++ b/src/server/scripts/World/mob_generic_creature.cpp
@@ -66,7 +66,7 @@ public:
if (BuffTimer <= diff)
{
//Find a spell that targets friendly and applies an aura (these are generally buffs)
- SpellInfo const *info = SelectSpell(me, 0, 0, SELECT_TARGET_ANY_FRIEND, 0, 0, 0, 0, SELECT_EFFECT_AURA);
+ SpellInfo const* info = SelectSpell(me, 0, 0, SELECT_TARGET_ANY_FRIEND, 0, 0, 0, 0, SELECT_EFFECT_AURA);
if (info && !GlobalCooldown)
{
@@ -94,7 +94,7 @@ public:
if (me->isAttackReady() && !me->IsNonMeleeSpellCasted(false))
{
bool Healing = false;
- SpellInfo const *info = NULL;
+ SpellInfo const* info = NULL;
//Select a healing spell if less than 30% hp
if (HealthBelowPct(30))
@@ -125,7 +125,7 @@ public:
if (!me->IsNonMeleeSpellCasted(false))
{
bool Healing = false;
- SpellInfo const *info = NULL;
+ SpellInfo const* info = NULL;
//Select a healing spell if less than 30% hp ONLY 33% of the time
if (HealthBelowPct(30) && rand() % 3 == 0)
@@ -161,7 +161,7 @@ public:
}
};
- CreatureAI *GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const
{
return new generic_creatureAI(creature);
}
@@ -182,7 +182,7 @@ public:
}
uint32 timer, interval;
- const SpellInfo * spell;
+ const SpellInfo* spell;
void UpdateAI(const uint32 diff)
{
@@ -197,7 +197,7 @@ public:
}
};
- CreatureAI *GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const
{
return new trigger_periodicAI(creature);
}
@@ -218,7 +218,7 @@ public:
}
};
- CreatureAI *GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const
{
return new trigger_deathAI(creature);
}