Cosmetic: Multiple cosmetic changes
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces
Note: Only affects files with extension "cpp" and "h" under /src/server
This commit is contained in:
+1
-1
@@ -727,7 +727,7 @@ public:
|
||||
Unit* pUnit = NULL;
|
||||
if (pInstance)
|
||||
{
|
||||
switch(rand()%4)
|
||||
switch (rand()%4)
|
||||
{
|
||||
case 0:
|
||||
pUnit = Unit::GetUnit((*me), pInstance->GetData64(DATA_KARATHRESS));
|
||||
|
||||
+1
-1
@@ -307,7 +307,7 @@ public:
|
||||
{
|
||||
uint32 mark_spell = 0;
|
||||
|
||||
switch(MarkOfHydross_Count)
|
||||
switch (MarkOfHydross_Count)
|
||||
{
|
||||
case 0: mark_spell = SPELL_MARK_OF_HYDROSS1; break;
|
||||
case 1: mark_spell = SPELL_MARK_OF_HYDROSS2; break;
|
||||
|
||||
@@ -884,7 +884,7 @@ public:
|
||||
};
|
||||
|
||||
//Coilfang Strider
|
||||
//It hits plate for about 8000 damage, has a Mind Blast spell doing about 3000 shadow damage, and a Psychic Scream Aura, which fears everybody in a 8 yard range of it every 2-3 seconds , for 5 seconds and increasing their movement speed by 150% during the fear.
|
||||
//It hits plate for about 8000 damage, has a Mind Blast spell doing about 3000 shadow damage, and a Psychic Scream Aura, which fears everybody in a 8 yard range of it every 2-3 seconds, for 5 seconds and increasing their movement speed by 150% during the fear.
|
||||
class mob_coilfang_strider : public CreatureScript
|
||||
{
|
||||
public:
|
||||
@@ -992,7 +992,7 @@ public:
|
||||
{
|
||||
uint32 identifier;
|
||||
uint8 channel_identifier;
|
||||
switch(gObj->GetEntry())
|
||||
switch (gObj->GetEntry())
|
||||
{
|
||||
case 185052:
|
||||
identifier = DATA_SHIELDGENERATOR1;
|
||||
|
||||
+1
-1
@@ -157,7 +157,7 @@ public:
|
||||
|
||||
void ApplyWateryGrave(Unit* player, uint8 i)
|
||||
{
|
||||
switch(i)
|
||||
switch (i)
|
||||
{
|
||||
case 0: player->CastSpell(player, SPELL_WATERY_GRAVE_1, true); break;
|
||||
case 1: player->CastSpell(player, SPELL_WATERY_GRAVE_2, true); break;
|
||||
|
||||
@@ -108,7 +108,7 @@ public:
|
||||
|
||||
void OnCreatureCreate(Creature* creature)
|
||||
{
|
||||
switch(creature->GetEntry())
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case 17797: ThespiaGUID = creature->GetGUID(); break;
|
||||
case 17796: MekgineerGUID = creature->GetGUID(); break;
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case MAIN_CHAMBERS_DOOR: MainChambersDoor = go->GetGUID(); break;
|
||||
case ACCESS_PANEL_HYDRO: AccessPanelHydro = go->GetGUID(); break;
|
||||
@@ -128,7 +128,7 @@ public:
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case TYPE_HYDROMANCER_THESPIA:
|
||||
if (data == SPECIAL)
|
||||
@@ -168,7 +168,7 @@ public:
|
||||
|
||||
uint32 GetData(uint32 type)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case TYPE_HYDROMANCER_THESPIA:
|
||||
return m_auiEncounter[0];
|
||||
@@ -184,7 +184,7 @@ public:
|
||||
|
||||
uint64 GetData64(uint32 data)
|
||||
{
|
||||
switch(data)
|
||||
switch (data)
|
||||
{
|
||||
case DATA_THESPIA:
|
||||
return ThespiaGUID;
|
||||
|
||||
Reference in New Issue
Block a user