mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Whitespace is the root of all evil
This commit is contained in:
@@ -33,7 +33,7 @@ public:
|
||||
ChatCommand* GetCommands() const
|
||||
{
|
||||
static ChatCommand castCommandTable[] =
|
||||
{
|
||||
{
|
||||
{ "back", SEC_ADMINISTRATOR, false, &HandleCastBackCommand, "", NULL },
|
||||
{ "dist", SEC_ADMINISTRATOR, false, &HandleCastDistCommand, "", NULL },
|
||||
{ "self", SEC_ADMINISTRATOR, false, &HandleCastSelfCommand, "", NULL },
|
||||
|
||||
@@ -51,7 +51,7 @@ public:
|
||||
};
|
||||
return commandTable;
|
||||
}
|
||||
|
||||
|
||||
/** \brief GM command level 3 - Create a guild.
|
||||
*
|
||||
* This command allows a GM (level 3) to create a guild.
|
||||
|
||||
@@ -218,25 +218,25 @@ public:
|
||||
{
|
||||
switch (identifier)
|
||||
{
|
||||
case DATA_SELIN:
|
||||
case DATA_SELIN:
|
||||
return SelinGUID;
|
||||
case DATA_DELRISSA:
|
||||
case DATA_DELRISSA:
|
||||
return DelrissaGUID;
|
||||
case DATA_VEXALLUS_DOOR:
|
||||
case DATA_VEXALLUS_DOOR:
|
||||
return VexallusDoorGUID;
|
||||
case DATA_SELIN_DOOR:
|
||||
case DATA_SELIN_DOOR:
|
||||
return SelinDoorGUID;
|
||||
case DATA_SELIN_ENCOUNTER_DOOR:
|
||||
case DATA_SELIN_ENCOUNTER_DOOR:
|
||||
return SelinEncounterDoorGUID;
|
||||
case DATA_DELRISSA_DOOR:
|
||||
case DATA_DELRISSA_DOOR:
|
||||
return DelrissaDoorGUID;
|
||||
case DATA_KAEL_DOOR:
|
||||
case DATA_KAEL_DOOR:
|
||||
return KaelDoorGUID;
|
||||
case DATA_KAEL_STATUE_LEFT:
|
||||
case DATA_KAEL_STATUE_LEFT:
|
||||
return KaelStatue[0];
|
||||
case DATA_KAEL_STATUE_RIGHT:
|
||||
case DATA_KAEL_STATUE_RIGHT:
|
||||
return KaelStatue[1];
|
||||
case DATA_ESCAPE_ORB:
|
||||
case DATA_ESCAPE_ORB:
|
||||
return EscapeOrbGUID;
|
||||
|
||||
case DATA_FEL_CRYSTAL:
|
||||
|
||||
@@ -173,13 +173,13 @@ public:
|
||||
if (me->GetDistance(victim) > 10.0f)
|
||||
DoCast(victim, SPELL_MULTI_SHOT);
|
||||
} else FadeTimer -= diff;
|
||||
|
||||
|
||||
if (SummonSkeletonTimer <= diff)
|
||||
{
|
||||
DoCast(me, SPELL_SUMMON_SKELETON);
|
||||
SummonSkeletonTimer = 20000 + rand()%10000;
|
||||
} else SummonSkeletonTimer -= diff;
|
||||
|
||||
|
||||
if (BlackArrowTimer <= diff)
|
||||
{
|
||||
if (Unit* victim = me->getVictim())
|
||||
@@ -188,7 +188,7 @@ public:
|
||||
BlackArrowTimer = 15000 + rand()%5000;
|
||||
}
|
||||
} else BlackArrowTimer -= diff;
|
||||
|
||||
|
||||
if (ShotTimer <= diff)
|
||||
{
|
||||
if (Unit* victim = me->getVictim())
|
||||
@@ -197,7 +197,7 @@ public:
|
||||
ShotTimer = 8000 + rand()%2000;
|
||||
}
|
||||
} else ShotTimer -= diff;
|
||||
|
||||
|
||||
if (MultiShotTimer <= diff)
|
||||
{
|
||||
if (Unit* victim = me->getVictim())
|
||||
@@ -205,7 +205,7 @@ public:
|
||||
DoCast(victim, SPELL_MULTI_SHOT);
|
||||
MultiShotTimer = 10000 + rand()%3000;
|
||||
}
|
||||
} else MultiShotTimer -= diff;
|
||||
} else MultiShotTimer -= diff;
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ enum Spells
|
||||
SPELL_BANSHEE_CURSE = 31651,
|
||||
SPELL_BANSHEE_WAIL = 38183,
|
||||
SPELL_ANTI_MAGIC_SHELL = 31662,
|
||||
SPELL_WEB = 28991,
|
||||
SPELL_WEB = 28991,
|
||||
SPELL_MANA_BURN = 31729,
|
||||
SPELL_FROST_BREATH = 31688,
|
||||
SPELL_GARGOYLE_STRIKE = 31664,
|
||||
|
||||
@@ -174,7 +174,7 @@ enum RuulSnowhoof
|
||||
NPC_THISTLEFUR_URSA = 3921,
|
||||
NPC_THISTLEFUR_TOTEMIC = 3922,
|
||||
NPC_THISTLEFUR_PATHFINDER = 3926,
|
||||
|
||||
|
||||
QUEST_FREEDOM_TO_RUUL = 6482,
|
||||
|
||||
GO_CAGE = 178147
|
||||
|
||||
@@ -182,9 +182,9 @@ public:
|
||||
enum RizzleSprysprocketData
|
||||
{
|
||||
QUEST_CHASING_THE_MOONSTONE = 10994,
|
||||
|
||||
|
||||
MOB_DEPTH_CHARGE = 23025,
|
||||
|
||||
|
||||
SPELL_RIZZLE_BLACKJACK = 39865,
|
||||
SPELL_RIZZLE_ESCAPE = 39871,
|
||||
SPELL_RIZZLE_FROST_GRENADE = 40525,
|
||||
@@ -490,7 +490,7 @@ public:
|
||||
{
|
||||
if (WeMustDieTimer <= diff)
|
||||
me->DespawnOrUnsummon();
|
||||
else
|
||||
else
|
||||
WeMustDieTimer -= diff;
|
||||
}
|
||||
return;
|
||||
|
||||
@@ -549,7 +549,7 @@ public:
|
||||
(*itr)->Respawn();
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
sLog->outError("SD2 ERROR: FlagList is empty!");
|
||||
}
|
||||
|
||||
@@ -560,7 +560,7 @@ public:
|
||||
if (EventStarted)
|
||||
SayTimer = NextStep(Step++);
|
||||
}
|
||||
else
|
||||
else
|
||||
SayTimer -= diff;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -40,10 +40,10 @@ EndContentData */
|
||||
enum RiverbreezeAndSilversky
|
||||
{
|
||||
SPELL_CENARION_BEACON = 15120,
|
||||
|
||||
|
||||
NPC_ARATHANDRIS_SILVERSKY = 9528,
|
||||
NPC_MAYBESS_RIVERBREEZE = 9529,
|
||||
|
||||
|
||||
QUEST_CLEASING_FELWOOD_A = 4101,
|
||||
QUEST_CLEASING_FELWOOD_H = 4102
|
||||
};
|
||||
|
||||
@@ -199,7 +199,7 @@ public:
|
||||
JustCreated = false;
|
||||
} else CanAttack = true;
|
||||
|
||||
|
||||
|
||||
for (uint8 i = 0; i < 4; ++i)
|
||||
if (Unit* remo = Unit::GetUnit(*me, ShieldGeneratorChannel[i]))
|
||||
remo->setDeathState(JUST_DIED);
|
||||
@@ -353,7 +353,7 @@ public:
|
||||
// Static Charge
|
||||
// Used on random people (only 1 person at any given time) in Phases 1 and 3, it's a debuff doing 2775 to 3225 Nature damage to the target and everybody in about 5 yards around it, every 1 seconds for 30 seconds. It can be removed by Cloak of Shadows, Iceblock, Divine Shield, etc, but not by Cleanse or Dispel Magic.
|
||||
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 200, true);
|
||||
if (target && !target->HasAura(SPELL_STATIC_CHARGE_TRIGGER))
|
||||
if (target && !target->HasAura(SPELL_STATIC_CHARGE_TRIGGER))
|
||||
DoCast(target, SPELL_STATIC_CHARGE_TRIGGER); // cast Static Charge every 2 seconds for 20 seconds
|
||||
|
||||
StaticChargeTimer = 10000+rand()%20000;
|
||||
|
||||
Reference in New Issue
Block a user