@@ -75,7 +75,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;
|
||||
}
|
||||
|
||||
@@ -566,7 +566,9 @@ public:
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
{
|
||||
if (victim == me) return;
|
||||
if (victim == me)
|
||||
return;
|
||||
|
||||
// TODO: Find better way to handle emote
|
||||
switch (urand(0, 1))
|
||||
{
|
||||
@@ -747,7 +749,8 @@ public:
|
||||
final.y = 2 * final.y - initial.y;
|
||||
|
||||
Creature* Trigger = me->SummonCreature(23069, initial.x, initial.y, initial.z, 0, TEMPSUMMON_TIMED_DESPAWN, 13000);
|
||||
if (!Trigger) return;
|
||||
if (!Trigger)
|
||||
return;
|
||||
|
||||
Trigger->SetSpeed(MOVE_WALK, 3);
|
||||
Trigger->SetWalk(true);
|
||||
@@ -2137,9 +2140,11 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
if (!UpdateVictim()) return;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (me->getVictim()->GetTypeId() != TYPEID_PLAYER) return; // Only cast the below on players.
|
||||
if (me->getVictim()->GetTypeId() != TYPEID_PLAYER)
|
||||
return; // Only cast the below on players.
|
||||
|
||||
if (!me->getVictim()->HasAura(SPELL_PARALYZE))
|
||||
{
|
||||
|
||||
@@ -197,8 +197,11 @@ public:
|
||||
uint32 random = rand()%6;
|
||||
float x = Coords[random].x;
|
||||
float y = Coords[random].y;
|
||||
|
||||
Creature* Soul = me->SummonCreature(CREATURE_ENSLAVED_SOUL, x, y, me->GetPositionZ(), me->GetOrientation(), TEMPSUMMON_CORPSE_DESPAWN, 0);
|
||||
if (!Soul) return false;
|
||||
if (!Soul)
|
||||
return false;
|
||||
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
{
|
||||
CAST_AI(npc_enslaved_soul::npc_enslaved_soulAI, Soul->AI())->ReliquaryGUID = me->GetGUID();
|
||||
|
||||
@@ -320,7 +320,8 @@ public:
|
||||
|
||||
void AttackStart(Unit* who)
|
||||
{
|
||||
if (!who || IsBanished) return;
|
||||
if (!who || IsBanished)
|
||||
return;
|
||||
|
||||
if (who->isTargetableForAttack() && who != me)
|
||||
DoStartMovement(who);
|
||||
|
||||
@@ -316,7 +316,8 @@ public:
|
||||
|
||||
void SetThreatList(Creature* Blossom)
|
||||
{
|
||||
if (!Blossom) return;
|
||||
if (!Blossom)
|
||||
return;
|
||||
|
||||
std::list<HostileReference*>& m_threatlist = me->getThreatManager().getThreatList();
|
||||
std::list<HostileReference*>::const_iterator i = m_threatlist.begin();
|
||||
|
||||
@@ -130,7 +130,9 @@ public:
|
||||
|
||||
bool RemoveImpalingSpine()
|
||||
{
|
||||
if (!SpineTargetGUID) return false;
|
||||
if (!SpineTargetGUID)
|
||||
return false;
|
||||
|
||||
Unit* target = Unit::GetUnit(*me, SpineTargetGUID);
|
||||
if (target && target->HasAura(SPELL_IMPALING_SPINE))
|
||||
target->RemoveAurasDueToSpell(SPELL_IMPALING_SPINE);
|
||||
|
||||
@@ -313,7 +313,8 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (!EventBegun) return;
|
||||
if (!EventBegun)
|
||||
return;
|
||||
|
||||
if (EndEventTimer)
|
||||
{
|
||||
|
||||
@@ -118,7 +118,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;
|
||||
}
|
||||
|
||||
+2
-1
@@ -112,7 +112,8 @@ public:
|
||||
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
if (!victimGUID) return;
|
||||
if (!victimGUID)
|
||||
return;
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
|
||||
@@ -383,12 +383,11 @@ public:
|
||||
|
||||
void MoveInLineOfSight(Unit* who)
|
||||
{
|
||||
if (!who || me->getVictim()) return;
|
||||
if (!who || me->getVictim())
|
||||
return;
|
||||
|
||||
if (who->isInAccessiblePlaceFor(me) && me->IsValidAttackTarget(who) && me->IsWithinDistInMap(who, 45))
|
||||
{
|
||||
AttackStart(who);
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
|
||||
@@ -77,7 +77,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;
|
||||
}
|
||||
|
||||
+3
-1
@@ -158,7 +158,9 @@ class boss_kelidan_the_breaker : public CreatureScript
|
||||
uint64 GetChanneled(Creature* channeler1)
|
||||
{
|
||||
SummonChannelers();
|
||||
if (!channeler1) return 0;
|
||||
if (!channeler1)
|
||||
return 0;
|
||||
|
||||
uint8 i;
|
||||
for (i=0; i<5; ++i)
|
||||
{
|
||||
|
||||
+3
-1
@@ -80,7 +80,9 @@ class instance_magtheridons_lair : public InstanceMapScript
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,8 @@ class instance_the_eye : public InstanceMapScript
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ class instance_mechanar : public InstanceMapScript
|
||||
return false;
|
||||
}
|
||||
|
||||
uint64 GetData64 (uint32 /*identifier*/)
|
||||
uint64 GetData64(uint32 /*identifier*/)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -93,7 +93,8 @@ class instance_arcatraz : public InstanceMapScript
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -492,7 +492,8 @@ public:
|
||||
|
||||
void MoveInLineOfSight(Unit* who)
|
||||
{
|
||||
if (!who || (!who->isAlive())) return;
|
||||
if (!who || (!who->isAlive()))
|
||||
return;
|
||||
|
||||
if (me->IsWithinDistInMap(who, 50.0f))
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "ScriptPCH.h"
|
||||
|
||||
enum Yells
|
||||
enum Texts
|
||||
{
|
||||
SAY_INTRO = 0,
|
||||
SAY_AGGRO = 1,
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "ScriptPCH.h"
|
||||
|
||||
enum Yells
|
||||
enum Texts
|
||||
{
|
||||
SAY_AGGRO = 0,
|
||||
SAY_EARTHQUAKE = 1,
|
||||
|
||||
@@ -394,7 +394,7 @@ public:
|
||||
|
||||
struct npc_commander_dawnforgeAI : public ScriptedAI
|
||||
{
|
||||
npc_commander_dawnforgeAI(Creature* creature) : ScriptedAI(creature) { Reset (); }
|
||||
npc_commander_dawnforgeAI(Creature* creature) : ScriptedAI(creature) { Reset(); }
|
||||
|
||||
uint64 PlayerGUID;
|
||||
uint64 ardonisGUID;
|
||||
|
||||
@@ -1727,7 +1727,7 @@ public:
|
||||
{
|
||||
npc_enraged_spiritAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
void Reset() { }
|
||||
void Reset() { }
|
||||
|
||||
void EnterCombat(Unit* /*who*/){}
|
||||
|
||||
@@ -1739,7 +1739,8 @@ public:
|
||||
uint32 entry = 0;
|
||||
uint32 credit = 0;
|
||||
|
||||
switch (me->GetEntry()) {
|
||||
switch (me->GetEntry())
|
||||
{
|
||||
case ENTRY_ENRAGED_FIRE_SPIRIT:
|
||||
entry = ENTRY_FIERY_SOUL;
|
||||
//credit = SPELL_FIERY_SOUL_CAPTURED_CREDIT;
|
||||
|
||||
Reference in New Issue
Block a user