@@ -87,7 +87,8 @@ public:
|
||||
bool IsEncounterInProgress() const
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_ENCOUNTER; ++i)
|
||||
if (m_auiEncounter[i] == IN_PROGRESS) return true;
|
||||
if (m_auiEncounter[i] == IN_PROGRESS)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -236,7 +237,8 @@ public:
|
||||
for (std::set<uint64>::const_iterator itr = InitiandGUIDs.begin(); itr != InitiandGUIDs.end(); ++itr)
|
||||
{
|
||||
Creature* cr = instance->GetCreature(*itr);
|
||||
if (!cr || (cr && cr->isAlive())) return 0;
|
||||
if (!cr || (cr && cr->isAlive()))
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
case DATA_JEDOGA_TRIGGER_SWITCH: return switchtrigger;
|
||||
|
||||
@@ -136,7 +136,8 @@ public:
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
//Return since we have no target
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
// Without he comes up through the air to players on the bridge after krikthir if players crossing this bridge!
|
||||
CheckDistance(fMaxDistance, diff);
|
||||
|
||||
@@ -64,7 +64,8 @@ public:
|
||||
bool IsEncounterInProgress() const
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_ENCOUNTER; ++i)
|
||||
if (auiEncounter[i] == IN_PROGRESS) return true;
|
||||
if (auiEncounter[i] == IN_PROGRESS)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
+34
-20
@@ -408,7 +408,8 @@ struct boss_faction_championsAI : public ScriptedAI
|
||||
|
||||
void AttackStart(Unit* who)
|
||||
{
|
||||
if (!who) return;
|
||||
if (!who)
|
||||
return;
|
||||
|
||||
if (me->Attack(who, true))
|
||||
{
|
||||
@@ -494,7 +495,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiNatureGraspTimer <= uiDiff)
|
||||
{
|
||||
@@ -588,7 +590,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiHeroismOrBloodlustTimer <= uiDiff)
|
||||
{
|
||||
@@ -687,7 +690,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiBubbleTimer <= uiDiff)
|
||||
{
|
||||
@@ -786,7 +790,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiPsychicScreamTimer <= uiDiff)
|
||||
{
|
||||
@@ -879,7 +884,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiPsychicScreamTimer <= uiDiff)
|
||||
{
|
||||
@@ -990,7 +996,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiFearTimer <= uiDiff)
|
||||
{
|
||||
@@ -1093,7 +1100,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiCounterspellTimer <= uiDiff)
|
||||
{
|
||||
@@ -1204,7 +1212,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiDisengageTimer <= uiDiff)
|
||||
{
|
||||
@@ -1312,7 +1321,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiBarkskinTimer <= uiDiff)
|
||||
{
|
||||
@@ -1424,7 +1434,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiBladestormTimer <= uiDiff)
|
||||
{
|
||||
@@ -1534,7 +1545,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiIceboundFortitudeTimer <= uiDiff)
|
||||
{
|
||||
@@ -1636,7 +1648,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiFanOfKnivesTimer <= uiDiff)
|
||||
{
|
||||
@@ -1773,7 +1786,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiHeroismOrBloodlustTimer <= uiDiff)
|
||||
{
|
||||
@@ -1873,7 +1887,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiRepeteanceTimer <= uiDiff)
|
||||
{
|
||||
@@ -1951,7 +1966,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiDevourMagicTimer <= uiDiff)
|
||||
{
|
||||
@@ -2000,7 +2016,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (m_uiClawTimer <= uiDiff)
|
||||
{
|
||||
@@ -2011,11 +2028,8 @@ public:
|
||||
boss_faction_championsAI::UpdateAI(uiDiff);
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
/*========================================================*/
|
||||
|
||||
void AddSC_boss_faction_champions()
|
||||
{
|
||||
new boss_toc_champion_controller();
|
||||
|
||||
+2
-1
@@ -454,7 +454,8 @@ struct boss_jormungarAI : public ScriptedAI
|
||||
|
||||
void UpdateAI(uint32 const diff)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (instanceScript && instanceScript->GetData(TYPE_NORTHREND_BEASTS) == SNAKES_SPECIAL && !enraged)
|
||||
{
|
||||
|
||||
+4
-2
@@ -199,7 +199,8 @@ struct boss_twin_baseAI : public ScriptedAI
|
||||
|
||||
void MovementInform(uint32 uiType, uint32 uiId)
|
||||
{
|
||||
if (uiType != POINT_MOTION_TYPE) return;
|
||||
if (uiType != POINT_MOTION_TYPE)
|
||||
return;
|
||||
|
||||
switch (uiId)
|
||||
{
|
||||
@@ -585,7 +586,8 @@ struct mob_unleashed_ballAI : public ScriptedAI
|
||||
|
||||
void MovementInform(uint32 uiType, uint32 uiId)
|
||||
{
|
||||
if (uiType != POINT_MOTION_TYPE) return;
|
||||
if (uiType != POINT_MOTION_TYPE)
|
||||
return;
|
||||
|
||||
switch (uiId)
|
||||
{
|
||||
|
||||
+21
-9
@@ -388,7 +388,8 @@ class npc_fizzlebang_toc : public CreatureScript
|
||||
|
||||
void MovementInform(uint32 uiType, uint32 uiId)
|
||||
{
|
||||
if (uiType != POINT_MOTION_TYPE) return;
|
||||
if (uiType != POINT_MOTION_TYPE)
|
||||
return;
|
||||
|
||||
switch (uiId)
|
||||
{
|
||||
@@ -411,9 +412,11 @@ class npc_fizzlebang_toc : public CreatureScript
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!instance) return;
|
||||
if (!instance)
|
||||
return;
|
||||
|
||||
if (instance->GetData(TYPE_EVENT_NPC) != NPC_FIZZLEBANG) return;
|
||||
if (instance->GetData(TYPE_EVENT_NPC) != NPC_FIZZLEBANG)
|
||||
return;
|
||||
|
||||
m_uiUpdateTimer = instance->GetData(TYPE_EVENT_TIMER);
|
||||
if (m_uiUpdateTimer <= uiDiff)
|
||||
@@ -537,8 +540,11 @@ class npc_tirion_toc : public CreatureScript
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!instance) return;
|
||||
if (instance->GetData(TYPE_EVENT_NPC) != NPC_TIRION) return;
|
||||
if (!instance)
|
||||
return;
|
||||
|
||||
if (instance->GetData(TYPE_EVENT_NPC) != NPC_TIRION)
|
||||
return;
|
||||
|
||||
m_uiUpdateTimer = instance->GetData(TYPE_EVENT_TIMER);
|
||||
if (m_uiUpdateTimer <= uiDiff)
|
||||
@@ -833,8 +839,11 @@ class npc_garrosh_toc : public CreatureScript
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!instance) return;
|
||||
if (instance->GetData(TYPE_EVENT_NPC) != NPC_GARROSH) return;
|
||||
if (!instance)
|
||||
return;
|
||||
|
||||
if (instance->GetData(TYPE_EVENT_NPC) != NPC_GARROSH)
|
||||
return;
|
||||
|
||||
m_uiUpdateTimer = instance->GetData(TYPE_EVENT_TIMER);
|
||||
if (m_uiUpdateTimer <= uiDiff)
|
||||
@@ -911,8 +920,11 @@ class npc_varian_toc : public CreatureScript
|
||||
|
||||
void UpdateAI(const uint32 uiDiff)
|
||||
{
|
||||
if (!instance) return;
|
||||
if (instance->GetData(TYPE_EVENT_NPC) != NPC_VARIAN) return;
|
||||
if (!instance)
|
||||
return;
|
||||
|
||||
if (instance->GetData(TYPE_EVENT_NPC) != NPC_VARIAN)
|
||||
return;
|
||||
|
||||
m_uiUpdateTimer = instance->GetData(TYPE_EVENT_TIMER);
|
||||
if (m_uiUpdateTimer <= uiDiff)
|
||||
|
||||
@@ -83,7 +83,8 @@ public:
|
||||
bool IsEncounterInProgress() const
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_ENCOUNTER; ++i)
|
||||
if (m_auiEncounter[i] == IN_PROGRESS) return true;
|
||||
if (m_auiEncounter[i] == IN_PROGRESS)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -131,7 +131,8 @@ public:
|
||||
bool IsEncounterInProgress() const
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_ENCOUNTER; ++i)
|
||||
if (m_auiEncounter[i] == IN_PROGRESS) return true;
|
||||
if (m_auiEncounter[i] == IN_PROGRESS)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -643,7 +643,7 @@ class boss_flame_leviathan_defense_cannon : public CreatureScript
|
||||
|
||||
uint32 NapalmTimer;
|
||||
|
||||
void Reset ()
|
||||
void Reset()
|
||||
{
|
||||
NapalmTimer = 5*IN_MILLISECONDS;
|
||||
DoCast(me, AURA_STEALTH_DETECTION);
|
||||
|
||||
@@ -100,7 +100,8 @@ public:
|
||||
bool IsEncounterInProgress() const
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_ENCOUNTER; ++i)
|
||||
if (m_auiEncounter[i] == IN_PROGRESS) return true;
|
||||
if (m_auiEncounter[i] == IN_PROGRESS)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -97,7 +97,8 @@ public:
|
||||
bool IsEncounterInProgress() const
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_ENCOUNTER; ++i)
|
||||
if (m_auiEncounter[i] == IN_PROGRESS) return true;
|
||||
if (m_auiEncounter[i] == IN_PROGRESS)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -221,7 +221,8 @@ public:
|
||||
bool IsEncounterInProgress() const
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_ENCOUNTER; ++i)
|
||||
if (m_auiEncounter[i] == IN_PROGRESS) return true;
|
||||
if (m_auiEncounter[i] == IN_PROGRESS)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -477,7 +477,7 @@ public:
|
||||
|
||||
uint32 DespawnTimer;
|
||||
|
||||
void Reset ()
|
||||
void Reset()
|
||||
{
|
||||
DespawnTimer = 5000;
|
||||
uiPlayerGUID = 0;
|
||||
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
npc_Apothecary_HanesAI(Creature* creature) : npc_escortAI(creature){}
|
||||
uint32 PotTimer;
|
||||
|
||||
void Reset ()
|
||||
void Reset()
|
||||
{
|
||||
SetDespawnAtFar(false);
|
||||
PotTimer = 10000; //10 sec cooldown on potion
|
||||
|
||||
Reference in New Issue
Block a user