*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))
|
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;
|
Player *pPlayer = NULL;
|
||||||
Unit *pTarget = NULL;
|
Unit *pTarget = NULL;
|
||||||
if (PlayerGUID)
|
if (PlayerGUID)
|
||||||
{
|
{
|
||||||
pPlayer = Unit::GetPlayer(PlayerGUID);
|
pPlayer = Unit::GetPlayer(PlayerGUID);
|
||||||
@@ -270,9 +270,9 @@ struct TRINITY_DLL_DECL pyrewood_ambushAI : public ScriptedAI
|
|||||||
void JustDied(Unit *pKiller)
|
void JustDied(Unit *pKiller)
|
||||||
{
|
{
|
||||||
if (PlayerGUID)
|
if (PlayerGUID)
|
||||||
if (Player *pPlayer = Unit::GetPlayer(PlayerGUID))
|
if (Player *pPlayer = Unit::GetPlayer(PlayerGUID))
|
||||||
if (pPlayer->GetQuestStatus(QUEST_PYREWOOD_AMBUSH) == QUEST_STATUS_INCOMPLETE)
|
if (pPlayer->GetQuestStatus(QUEST_PYREWOOD_AMBUSH) == QUEST_STATUS_INCOMPLETE)
|
||||||
pPlayer->FailQuest(QUEST_PYREWOOD_AMBUSH);
|
pPlayer->FailQuest(QUEST_PYREWOOD_AMBUSH);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
@@ -292,7 +292,7 @@ struct TRINITY_DLL_DECL pyrewood_ambushAI : public ScriptedAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (Phase)
|
switch (Phase)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
if(WaitTimer == WAIT_SECS)
|
if(WaitTimer == WAIT_SECS)
|
||||||
m_creature->MonsterSay(NPCSAY_INIT, LANG_UNIVERSAL, 0); //no blizzlike
|
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();
|
CheckEventFail();
|
||||||
if (WaveCount == 4 || Failed)
|
if (WaveCount == 4 || Failed)
|
||||||
EnterEvadeMode();
|
EnterEvadeMode();
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
void mob_qiraj_war_spawnAI::JustDied(Unit* slayer)
|
void mob_qiraj_war_spawnAI::JustDied(Unit* slayer)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -135,7 +135,7 @@ struct MANGOS_DLL_DECL boss_jedoga_shadowseekerAI : public ScriptedAI
|
|||||||
void KilledUnit(Unit* Victim)
|
void KilledUnit(Unit* Victim)
|
||||||
{
|
{
|
||||||
if (!Victim || Victim->GetTypeId() != TYPEID_PLAYER)
|
if (!Victim || Victim->GetTypeId() != TYPEID_PLAYER)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
DoScriptText(RAND(TEXT_SLAY_1, TEXT_SLAY_2, TEXT_SLAY_3), m_creature);
|
DoScriptText(RAND(TEXT_SLAY_1, TEXT_SLAY_2, TEXT_SLAY_3), m_creature);
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-6
@@ -294,18 +294,18 @@ struct TRINITY_DLL_DECL boss_taldaramAI : public ScriptedAI
|
|||||||
bool CheckSpheres()
|
bool CheckSpheres()
|
||||||
{
|
{
|
||||||
if(!pInstance)
|
if(!pInstance)
|
||||||
return false;
|
return false;
|
||||||
uiSphereGuids[0] = pInstance->GetData64(DATA_SPHERE1);
|
uiSphereGuids[0] = pInstance->GetData64(DATA_SPHERE1);
|
||||||
uiSphereGuids[1] = pInstance->GetData64(DATA_SPHERE2);
|
uiSphereGuids[1] = pInstance->GetData64(DATA_SPHERE2);
|
||||||
|
|
||||||
GameObject *pSpheres[2];
|
GameObject *pSpheres[2];
|
||||||
for (uint8 i=0; i < 2; ++i)
|
for (uint8 i=0; i < 2; ++i)
|
||||||
{
|
{
|
||||||
pSpheres[i] = pInstance->instance->GetGameObject(uiSphereGuids[i]);
|
pSpheres[i] = pInstance->instance->GetGameObject(uiSphereGuids[i]);
|
||||||
if (!pSpheres[i])
|
if (!pSpheres[i])
|
||||||
return false;
|
return false;
|
||||||
if (pSpheres[i]->GetGoState() != GO_STATE_ACTIVE)
|
if (pSpheres[i]->GetGoState() != GO_STATE_ACTIVE)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
RemovePrison();
|
RemovePrison();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -118,8 +118,8 @@ struct TRINITY_DLL_DECL boss_faerlinaAI : public BossAI
|
|||||||
case EVENT_FRENZY:
|
case EVENT_FRENZY:
|
||||||
DoCast(me,HEROIC(SPELL_FRENZY,H_SPELL_FRENZY));
|
DoCast(me,HEROIC(SPELL_FRENZY,H_SPELL_FRENZY));
|
||||||
return;
|
return;
|
||||||
case EVENT_AFTERENRAGE:
|
case EVENT_AFTERENRAGE:
|
||||||
events.ScheduleEvent(EVENT_FRENZY, urand(60000,80000));
|
events.ScheduleEvent(EVENT_FRENZY, urand(60000,80000));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user