Add spaces after commas
This commit is contained in:
@@ -30,7 +30,7 @@ enum eSpells
|
||||
|
||||
#define GOSSIP_ITEM_MORRIDUNE "Please port me to Darnassus"
|
||||
|
||||
const Position HomePosition = {-815.817f,-145.299f,-25.870f, 0};
|
||||
const Position HomePosition = {-815.817f, -145.299f, -25.870f, 0};
|
||||
|
||||
class go_blackfathom_altar : public GameObjectScript
|
||||
{
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
bool OnGossipHello(Player *pPlayer, GameObject* /*pGo*/)
|
||||
{
|
||||
if (!pPlayer->HasAura(SPELL_BLESSING_OF_BLACKFATHOM))
|
||||
pPlayer->AddAura(SPELL_BLESSING_OF_BLACKFATHOM,pPlayer);
|
||||
pPlayer->AddAura(SPELL_BLESSING_OF_BLACKFATHOM, pPlayer);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -102,9 +102,9 @@ public:
|
||||
{
|
||||
bFlee = false;
|
||||
|
||||
uiRavageTimer = urand(5000,8000);
|
||||
uiFrostNovaTimer = urand(9000,12000);
|
||||
uiFrostBoltVolleyTimer = urand(2000,4000);
|
||||
uiRavageTimer = urand(5000, 8000);
|
||||
uiFrostNovaTimer = urand(9000, 12000);
|
||||
uiFrostBoltVolleyTimer = urand(2000, 4000);
|
||||
}
|
||||
|
||||
void AttackPlayer()
|
||||
@@ -143,7 +143,7 @@ public:
|
||||
if (uiRavageTimer <= uiDiff)
|
||||
{
|
||||
DoCast(me->getVictim(), SPELL_RAVAGE);
|
||||
uiRavageTimer = urand(9000,14000);
|
||||
uiRavageTimer = urand(9000, 14000);
|
||||
} else uiRavageTimer -= uiDiff;
|
||||
break;
|
||||
}
|
||||
@@ -161,17 +161,17 @@ public:
|
||||
{
|
||||
if (uiFrostBoltVolleyTimer <= uiDiff)
|
||||
{
|
||||
if (Unit* pTarget = SelectTarget(SELECT_TARGET_RANDOM,0))
|
||||
if (Unit* pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
{
|
||||
if (pTarget)
|
||||
DoCast(pTarget, SPELL_FROST_BOLT_VOLLEY);
|
||||
}
|
||||
uiFrostBoltVolleyTimer = urand(5000,8000);
|
||||
uiFrostBoltVolleyTimer = urand(5000, 8000);
|
||||
} else uiFrostBoltVolleyTimer -= uiDiff;
|
||||
if (uiFrostNovaTimer <= uiDiff)
|
||||
{
|
||||
DoCastAOE(SPELL_FROST_NOVA,false);
|
||||
uiFrostNovaTimer = urand(25000,30000);
|
||||
DoCastAOE(SPELL_FROST_NOVA, false);
|
||||
uiFrostNovaTimer = urand(25000, 30000);
|
||||
} else uiFrostNovaTimer -= uiDiff;
|
||||
break;
|
||||
}
|
||||
@@ -207,7 +207,7 @@ public:
|
||||
switch(uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_INFO_DEF+1:
|
||||
pPlayer->TeleportTo(1,9952.239f,2284.277f,1341.394f,1.595f);
|
||||
pPlayer->TeleportTo(1, 9952.239f, 2284.277f, 1341.394f, 1.595f);
|
||||
pPlayer->CLOSE_GOSSIP_MENU();
|
||||
break;
|
||||
}
|
||||
@@ -231,9 +231,9 @@ public:
|
||||
{
|
||||
npc_morriduneAI(Creature* pCreature) : npc_escortAI(pCreature)
|
||||
{
|
||||
DoScriptText(SAY_MORRIDUNE_1,pCreature);
|
||||
DoScriptText(SAY_MORRIDUNE_1, pCreature);
|
||||
me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
||||
Start(false,false,0);
|
||||
Start(false, false, 0);
|
||||
}
|
||||
|
||||
void WaypointReached(uint32 uiPoint)
|
||||
@@ -245,7 +245,7 @@ public:
|
||||
me->SetOrientation(1.775791f);
|
||||
me->SendMovementFlagUpdate();
|
||||
me->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
||||
DoScriptText(SAY_MORRIDUNE_2,me);
|
||||
DoScriptText(SAY_MORRIDUNE_2, me);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
|
||||
void Reset()
|
||||
{
|
||||
uiPoisonCloudTimer = urand(5000,9000);
|
||||
uiPoisonCloudTimer = urand(5000, 9000);
|
||||
bIsEnraged = false;
|
||||
if (pInstance)
|
||||
pInstance->SetData(TYPE_AKU_MAI, NOT_STARTED);
|
||||
@@ -74,12 +74,12 @@ public:
|
||||
if (uiPoisonCloudTimer < diff)
|
||||
{
|
||||
DoCastVictim(SPELL_POISON_CLOUD);
|
||||
uiPoisonCloudTimer = urand(25000,50000);
|
||||
uiPoisonCloudTimer = urand(25000, 50000);
|
||||
} else uiPoisonCloudTimer -= diff;
|
||||
|
||||
if (!bIsEnraged && HealthBelowPct(30))
|
||||
{
|
||||
DoCast(me,SPELL_FRENZIED_RAGE);
|
||||
DoCast(me, SPELL_FRENZIED_RAGE);
|
||||
bIsEnraged = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
|
||||
void Reset()
|
||||
{
|
||||
uiNetTimer = urand(2000,4000);
|
||||
uiNetTimer = urand(2000, 4000);
|
||||
if (pInstance)
|
||||
pInstance->SetData(TYPE_GELIHAST, NOT_STARTED);
|
||||
}
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
if (uiNetTimer < diff)
|
||||
{
|
||||
DoCastVictim(SPELL_NET);
|
||||
uiNetTimer = urand(4000,7000);
|
||||
uiNetTimer = urand(4000, 7000);
|
||||
} else uiNetTimer -= diff;
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
|
||||
@@ -56,8 +56,8 @@ public:
|
||||
|
||||
void Reset()
|
||||
{
|
||||
uiMindBlastTimer = urand(2000,5000);
|
||||
uiSleepTimer = urand(9000,12000);
|
||||
uiMindBlastTimer = urand(2000, 5000);
|
||||
uiSleepTimer = urand(9000, 12000);
|
||||
if (pInstance)
|
||||
pInstance->SetData(TYPE_KELRIS, NOT_STARTED);
|
||||
}
|
||||
@@ -84,7 +84,7 @@ public:
|
||||
if (uiMindBlastTimer < diff)
|
||||
{
|
||||
DoCastVictim(SPELL_MIND_BLAST);
|
||||
uiMindBlastTimer = urand(7000,9000);
|
||||
uiMindBlastTimer = urand(7000, 9000);
|
||||
} else uiMindBlastTimer -= diff;
|
||||
|
||||
if (uiSleepTimer < diff)
|
||||
@@ -94,7 +94,7 @@ public:
|
||||
DoScriptText(SAY_SLEEP, me);
|
||||
DoCast(pTarget, SPELL_SLEEP);
|
||||
}
|
||||
uiSleepTimer = urand(15000,20000);
|
||||
uiSleepTimer = urand(15000, 20000);
|
||||
} else uiSleepTimer -= diff;
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
|
||||
@@ -102,7 +102,7 @@ public:
|
||||
m_uiTwilightLordKelrisGUID = creature->GetGUID();
|
||||
break;
|
||||
case NPC_LORGUS_JETT:
|
||||
creature->SetHomePosition(LorgusPosition[urand(0,3)]);
|
||||
creature->SetHomePosition(LorgusPosition[urand(0, 3)]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -135,7 +135,7 @@ public:
|
||||
break;
|
||||
case GO_AKU_MAI_DOOR:
|
||||
if (m_auiEncounter[2] == DONE)
|
||||
HandleGameObject(0,true,go);
|
||||
HandleGameObject(0, true, go);
|
||||
m_uiMainDoorGUID = go->GetGUID();
|
||||
break;
|
||||
}
|
||||
@@ -157,7 +157,7 @@ public:
|
||||
if (GameObject* go = instance->GetGameObject(m_uiAltarOfTheDeepsGUID))
|
||||
{
|
||||
go->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_UNK1);
|
||||
go->SummonCreature(NPC_MORRIDUNE,SpawnsLocation[4], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 300000);
|
||||
go->SummonCreature(NPC_MORRIDUNE, SpawnsLocation[4], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 300000);
|
||||
}
|
||||
break;
|
||||
case DATA_FIRE:
|
||||
@@ -206,7 +206,7 @@ public:
|
||||
case DATA_EVENT:
|
||||
uiDeathTimes = uiData;
|
||||
if (uiDeathTimes == 18)
|
||||
HandleGameObject(m_uiMainDoorGUID,true);
|
||||
HandleGameObject(m_uiMainDoorGUID, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user