Core/Script: Code style.

Signed-off-by: Gyx <[email protected]>
This commit is contained in:
Gyx
2012-03-16 20:31:23 +08:00
parent bef1b0c402
commit cd38e7df2b
11 changed files with 59 additions and 48 deletions
@@ -111,7 +111,7 @@ public:
instance->SetData(TYPE_MEDIVH, IN_PROGRESS);
DoCast(me, SPELL_CHANNEL, false);
Check_Timer = 5000;
}
}
else if (who->GetTypeId() == TYPEID_UNIT && me->IsWithinDistInMap(who, 15.0f))
{
if (instance->GetData(TYPE_MEDIVH) != IN_PROGRESS)
@@ -170,7 +170,7 @@ public:
{
if (SpellCorrupt_Timer <= diff)
{
instance->SetData(TYPE_MEDIVH, SPECIAL);
instance->SetData(TYPE_MEDIVH, SPECIAL);
if (me->HasAura(SPELL_CORRUPT_AEONUS))
SpellCorrupt_Timer = 1000;
@@ -308,7 +308,8 @@ public:
}
}
void SpawnPyramidWave(uint32 wave){
void SpawnPyramidWave(uint32 wave)
{
for (int i = 0; i < pyramidSpawnTotal; i++)
{
if (pyramidSpawns[i][0] == (float)wave)
@@ -321,7 +322,8 @@ public:
}
}
bool IsWaveAllDead(){
bool IsWaveAllDead()
{
for (std::list<uint64>::iterator itr = addsAtBase.begin(); itr != addsAtBase.end(); ++itr)
{
if (Creature* add = instance->GetCreature((*itr)))
@@ -234,7 +234,6 @@ public:
void WaypointReached(uint32 i)
{
Player* player = GetPlayerForEscort();
if (!player)
return;
+4 -5
View File
@@ -53,12 +53,12 @@ public:
bool OnGossipHello(Player* player, Creature* creature)
{
uint32 eCreature = creature->GetEntry();
if (creature->isQuestGiver())
player->PrepareQuestMenu(creature->GetGUID());
if (eCreature == 9528)
uint32 creatureId = creature->GetEntry();
if (creatureId == 9528)
{
if (player->GetQuestRewardStatus(4101))
{
@@ -70,7 +70,7 @@ public:
player->SEND_GOSSIP_MENU(2844, creature->GetGUID());
}
if (eCreature == 9529)
if (creatureId == 9529)
{
if (player->GetQuestRewardStatus(4102))
{
@@ -84,7 +84,6 @@ public:
return true;
}
};
void AddSC_felwood()