Code Style (game + scripts only):
"==" --> " == " (when needed) --HG-- branch : trunk
This commit is contained in:
@@ -1845,7 +1845,7 @@ enum Mootoo_the_Younger_Entries
|
||||
};
|
||||
bool QuestAccept_npc_mootoo_the_younger(Player* pPlayer, Creature* pCreature, Quest const* quest)
|
||||
{
|
||||
if (quest->GetQuestId()==QUEST_ESCAPING_THE_MIST)
|
||||
if (quest->GetQuestId() == QUEST_ESCAPING_THE_MIST)
|
||||
{
|
||||
switch (pPlayer->GetTeam())
|
||||
{
|
||||
@@ -1930,7 +1930,7 @@ enum Script_Texts_Bonker_Togglevolt
|
||||
|
||||
bool QuestAccept_npc_bonker_togglevolt(Player* pPlayer, Creature* pCreature, Quest const* quest)
|
||||
{
|
||||
if (quest->GetQuestId()==QUEST_GET_ME_OUTA_HERE)
|
||||
if (quest->GetQuestId() == QUEST_GET_ME_OUTA_HERE)
|
||||
{
|
||||
switch (pPlayer->GetTeam())
|
||||
{
|
||||
@@ -1967,7 +1967,7 @@ struct npc_bonker_togglevoltAI : public npc_escortAI
|
||||
{
|
||||
if (GetAttack() && UpdateVictim())
|
||||
{
|
||||
if (Bonker_agro==0)
|
||||
if (Bonker_agro == 0)
|
||||
{
|
||||
DoScriptText(SAY_bonker_1,m_creature);
|
||||
Bonker_agro++;
|
||||
|
||||
@@ -131,11 +131,11 @@ struct boss_malygosAI : public ScriptedAI
|
||||
if (victim == m_creature)
|
||||
return;
|
||||
|
||||
if (phase ==1)
|
||||
if (phase == 1)
|
||||
DoScriptText(RAND(SAY_PHASE1_SLAY_1,SAY_PHASE1_SLAY_2,SAY_PHASE1_SLAY_3), m_creature);
|
||||
if (phase ==2)
|
||||
if (phase == 2)
|
||||
DoScriptText(RAND(SAY_PHASE2_SLAY_1,SAY_PHASE2_SLAY_2,SAY_PHASE2_SLAY_3), m_creature);
|
||||
if (phase ==3)
|
||||
if (phase == 3)
|
||||
DoScriptText(RAND(SAY_PHASE3_SLAY_1,SAY_PHASE3_SLAY_2,SAY_PHASE3_SLAY_3), m_creature);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -274,7 +274,7 @@ struct mob_ravenous_furbolgAI : public ScriptedAI
|
||||
m_creature->GetMotionMaster()->MoveTargetedHome();
|
||||
|
||||
if (pInstance)
|
||||
if (pInstance->GetData(DATA_GORTOK_PALEHOOF_EVENT)==IN_PROGRESS)
|
||||
if (pInstance->GetData(DATA_GORTOK_PALEHOOF_EVENT) == IN_PROGRESS)
|
||||
{
|
||||
Creature *pPalehoof = Unit::GetCreature((*m_creature), pInstance ? pInstance->GetData64(DATA_GORTOK_PALEHOOF) : 0);
|
||||
if (pPalehoof && pPalehoof->isAlive())
|
||||
@@ -380,7 +380,7 @@ struct mob_frenzied_worgenAI : public ScriptedAI
|
||||
m_creature->GetMotionMaster()->MoveTargetedHome();
|
||||
|
||||
if (pInstance)
|
||||
if (pInstance->GetData(DATA_GORTOK_PALEHOOF_EVENT)==IN_PROGRESS)
|
||||
if (pInstance->GetData(DATA_GORTOK_PALEHOOF_EVENT) == IN_PROGRESS)
|
||||
{
|
||||
Creature *pPalehoof = Unit::GetCreature((*m_creature), pInstance ? pInstance->GetData64(DATA_GORTOK_PALEHOOF) : 0);
|
||||
if (pPalehoof && pPalehoof->isAlive())
|
||||
@@ -489,7 +489,7 @@ struct mob_ferocious_rhinoAI : public ScriptedAI
|
||||
m_creature->GetMotionMaster()->MoveTargetedHome();
|
||||
|
||||
if (pInstance)
|
||||
if (pInstance->GetData(DATA_GORTOK_PALEHOOF_EVENT)==IN_PROGRESS)
|
||||
if (pInstance->GetData(DATA_GORTOK_PALEHOOF_EVENT) == IN_PROGRESS)
|
||||
{
|
||||
Creature *pPalehoof = Unit::GetCreature((*m_creature), pInstance ? pInstance->GetData64(DATA_GORTOK_PALEHOOF) : 0);
|
||||
if (pPalehoof && pPalehoof->isAlive())
|
||||
@@ -702,7 +702,7 @@ struct mob_palehoof_orbAI : public ScriptedAI
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (currentPhase==PHASE_NONE)
|
||||
if (currentPhase == PHASE_NONE)
|
||||
return;
|
||||
|
||||
if (SummonTimer<=diff)
|
||||
|
||||
Reference in New Issue
Block a user