diff options
author | Rat <none@none> | 2009-11-02 17:34:26 +0100 |
---|---|---|
committer | Rat <none@none> | 2009-11-02 17:34:26 +0100 |
commit | 94a2abff6173dc47107e584e53732b0ffbbf3546 (patch) | |
tree | 2d48e760b2853ba93a10f22de3299db1ffc2c750 | |
parent | f02771262d5e345e2b8fcd69ba830593047d44ed (diff) |
*tabs to spaces in all TrinityScripts
--HG--
branch : trunk
5 files changed, 16 insertions, 16 deletions
diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/silverpine_forest.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/silverpine_forest.cpp index 33f0098ee0a..b2f4be51e0b 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/silverpine_forest.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/silverpine_forest.cpp @@ -249,8 +249,8 @@ struct TRINITY_DLL_DECL pyrewood_ambushAI : public ScriptedAI { if (Creature *pSummoned = m_creature->SummonCreature(creatureId, PyrewoodSpawnPoints[position][0], PyrewoodSpawnPoints[position][1], PyrewoodSpawnPoints[position][2], PyrewoodSpawnPoints[position][3], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 15000)) { - Player *pPlayer = NULL; - Unit *pTarget = NULL; + Player *pPlayer = NULL; + Unit *pTarget = NULL; if (PlayerGUID) { pPlayer = Unit::GetPlayer(PlayerGUID); @@ -270,9 +270,9 @@ struct TRINITY_DLL_DECL pyrewood_ambushAI : public ScriptedAI void JustDied(Unit *pKiller) { if (PlayerGUID) - if (Player *pPlayer = Unit::GetPlayer(PlayerGUID)) - if (pPlayer->GetQuestStatus(QUEST_PYREWOOD_AMBUSH) == QUEST_STATUS_INCOMPLETE) - pPlayer->FailQuest(QUEST_PYREWOOD_AMBUSH); + if (Player *pPlayer = Unit::GetPlayer(PlayerGUID)) + if (pPlayer->GetQuestStatus(QUEST_PYREWOOD_AMBUSH) == QUEST_STATUS_INCOMPLETE) + pPlayer->FailQuest(QUEST_PYREWOOD_AMBUSH); } void UpdateAI(const uint32 diff) @@ -292,7 +292,7 @@ struct TRINITY_DLL_DECL pyrewood_ambushAI : public ScriptedAI } switch (Phase) - { + { case 0: if(WaitTimer == WAIT_SECS) m_creature->MonsterSay(NPCSAY_INIT, LANG_UNIVERSAL, 0); //no blizzlike diff --git a/src/bindings/scripts/scripts/kalimdor/silithus.cpp b/src/bindings/scripts/scripts/kalimdor/silithus.cpp index 8313d3b12b7..b1884d6c242 100644 --- a/src/bindings/scripts/scripts/kalimdor/silithus.cpp +++ b/src/bindings/scripts/scripts/kalimdor/silithus.cpp @@ -1015,7 +1015,7 @@ struct TRINITY_DLL_DECL npc_anachronos_quest_triggerAI : public ScriptedAI CheckEventFail(); if (WaveCount == 4 || Failed) EnterEvadeMode(); - }; + }; }; void mob_qiraj_war_spawnAI::JustDied(Unit* slayer) { diff --git a/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_jedoga_shadowseeker.cpp b/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_jedoga_shadowseeker.cpp index 6a97f2417aa..cd769f074e5 100644 --- a/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_jedoga_shadowseeker.cpp +++ b/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_jedoga_shadowseeker.cpp @@ -135,7 +135,7 @@ struct MANGOS_DLL_DECL boss_jedoga_shadowseekerAI : public ScriptedAI void KilledUnit(Unit* Victim) { if (!Victim || Victim->GetTypeId() != TYPEID_PLAYER) - return; + return; DoScriptText(RAND(TEXT_SLAY_1, TEXT_SLAY_2, TEXT_SLAY_3), m_creature); } diff --git a/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_prince_taldaram.cpp b/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_prince_taldaram.cpp index a37022ce27f..a9dfeaf9675 100644 --- a/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_prince_taldaram.cpp +++ b/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_prince_taldaram.cpp @@ -294,18 +294,18 @@ struct TRINITY_DLL_DECL boss_taldaramAI : public ScriptedAI bool CheckSpheres() { if(!pInstance) - return false; + return false; uiSphereGuids[0] = pInstance->GetData64(DATA_SPHERE1); uiSphereGuids[1] = pInstance->GetData64(DATA_SPHERE2); GameObject *pSpheres[2]; for (uint8 i=0; i < 2; ++i) { - pSpheres[i] = pInstance->instance->GetGameObject(uiSphereGuids[i]); - if (!pSpheres[i]) - return false; - if (pSpheres[i]->GetGoState() != GO_STATE_ACTIVE) - return false; + pSpheres[i] = pInstance->instance->GetGameObject(uiSphereGuids[i]); + if (!pSpheres[i]) + return false; + if (pSpheres[i]->GetGoState() != GO_STATE_ACTIVE) + return false; } RemovePrison(); return true; diff --git a/src/bindings/scripts/scripts/northrend/naxxramas/boss_faerlina.cpp b/src/bindings/scripts/scripts/northrend/naxxramas/boss_faerlina.cpp index f1f332e9bc6..42b7d53667c 100644 --- a/src/bindings/scripts/scripts/northrend/naxxramas/boss_faerlina.cpp +++ b/src/bindings/scripts/scripts/northrend/naxxramas/boss_faerlina.cpp @@ -118,8 +118,8 @@ struct TRINITY_DLL_DECL boss_faerlinaAI : public BossAI case EVENT_FRENZY: DoCast(me,HEROIC(SPELL_FRENZY,H_SPELL_FRENZY)); return; - case EVENT_AFTERENRAGE: - events.ScheduleEvent(EVENT_FRENZY, urand(60000,80000)); + case EVENT_AFTERENRAGE: + events.ScheduleEvent(EVENT_FRENZY, urand(60000,80000)); } } |