mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 13:47:23 +01:00
*tabs to spaces in all TrinityScripts
--HG-- branch : trunk
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user