mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-21 15:27:47 -04:00
*Fix build.
--HG-- branch : trunk
This commit is contained in:
@@ -68,14 +68,6 @@ void ScriptedAI::AttackStart(Unit* who, bool melee)
|
||||
|
||||
if (m_creature->Attack(who, melee))
|
||||
{
|
||||
m_creature->AddThreat(who, 0.0f);
|
||||
|
||||
if (!InCombat)
|
||||
{
|
||||
InCombat = true;
|
||||
Aggro(who);
|
||||
}
|
||||
|
||||
if(melee)
|
||||
DoStartMovement(who);
|
||||
else
|
||||
@@ -90,14 +82,6 @@ void ScriptedAI::AttackStart(Unit* who)
|
||||
|
||||
if (m_creature->Attack(who, true))
|
||||
{
|
||||
m_creature->AddThreat(who, 0.0f);
|
||||
|
||||
if (!InCombat)
|
||||
{
|
||||
InCombat = true;
|
||||
Aggro(who);
|
||||
}
|
||||
|
||||
DoStartMovement(who);
|
||||
}
|
||||
}
|
||||
@@ -139,13 +123,11 @@ void ScriptedAI::EnterEvadeMode()
|
||||
m_creature->GetMotionMaster()->MoveTargetedHome();
|
||||
}
|
||||
|
||||
InCombat = false;
|
||||
Reset();
|
||||
}
|
||||
|
||||
void ScriptedAI::JustRespawned()
|
||||
{
|
||||
InCombat = false;
|
||||
Reset();
|
||||
}
|
||||
|
||||
@@ -792,14 +774,6 @@ void Scripted_NoMovementAI::AttackStart(Unit* who)
|
||||
|
||||
if (m_creature->Attack(who, true))
|
||||
{
|
||||
m_creature->AddThreat(who, 0.0f);
|
||||
|
||||
if (!InCombat)
|
||||
{
|
||||
InCombat = true;
|
||||
Aggro(who);
|
||||
}
|
||||
|
||||
DoStartNoMovement(who);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ struct PointMovement
|
||||
|
||||
struct TRINITY_DLL_DECL ScriptedAI : public CreatureAI
|
||||
{
|
||||
ScriptedAI(Creature* creature) : CreatureAI(creature), m_creature(creature), InCombat(false), IsFleeing(false) {}
|
||||
ScriptedAI(Creature* creature) : CreatureAI(creature), m_creature(creature), IsFleeing(false) {}
|
||||
~ScriptedAI() {}
|
||||
|
||||
//*************
|
||||
@@ -98,9 +98,6 @@ struct TRINITY_DLL_DECL ScriptedAI : public CreatureAI
|
||||
//Pointer to creature we are manipulating
|
||||
Creature* m_creature;
|
||||
|
||||
//Bool for if we are in combat or not
|
||||
bool InCombat;
|
||||
|
||||
//For fleeing
|
||||
bool IsFleeing;
|
||||
|
||||
@@ -112,7 +109,7 @@ struct TRINITY_DLL_DECL ScriptedAI : public CreatureAI
|
||||
void Reset() {}
|
||||
|
||||
//Called at creature aggro either by MoveInLOS or Attack Start
|
||||
virtual void Aggro(Unit*) = 0;
|
||||
void EnterCombat(Unit*);
|
||||
|
||||
//*************
|
||||
//AI Helper Functions
|
||||
@@ -208,7 +205,7 @@ struct TRINITY_DLL_DECL NullCreatureAI : public ScriptedAI
|
||||
~NullCreatureAI() {}
|
||||
|
||||
void Reset() {}
|
||||
void Aggro(Unit*) {}
|
||||
void EnterCombat(Unit*) {}
|
||||
void MoveInLineOfSight(Unit *) {}
|
||||
void AttackStart(Unit *) {}
|
||||
void EnterEvadeMode() {}
|
||||
|
||||
@@ -55,7 +55,7 @@ struct TRINITY_DLL_DECL boss_emerissAI : public ScriptedAI
|
||||
CorruptionofEarth3_Timer = 0;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
|
||||
@@ -73,7 +73,7 @@ struct TRINITY_DLL_DECL boss_taerarAI : public ScriptedAI
|
||||
Shades = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -253,7 +253,7 @@ struct TRINITY_DLL_DECL boss_shadeoftaerarAI : public ScriptedAI
|
||||
PosionBreath_Timer = 12000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ struct TRINITY_DLL_DECL boss_ysondreAI : public ScriptedAI
|
||||
SummonDruids3_Timer = 0;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ struct TRINITY_DLL_DECL mob_dementeddruidsAI : public ScriptedAI
|
||||
MoonFire_Timer = 3000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ struct TRINITY_DLL_DECL generic_creatureAI : public ScriptedAI
|
||||
IsSelfRooted = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
if (!m_creature->IsWithinMeleeRange(who))
|
||||
{
|
||||
@@ -56,7 +56,7 @@ struct TRINITY_DLL_DECL generic_creatureAI : public ScriptedAI
|
||||
else GlobalCooldown = 0;
|
||||
|
||||
//Buff timer (only buff when we are alive and not in combat
|
||||
if (!InCombat && m_creature->isAlive())
|
||||
if (!m_creature->isInCombat() && m_creature->isAlive())
|
||||
if (BuffTimer < diff )
|
||||
{
|
||||
//Find a spell that targets friendly and applies an aura (these are generally buffs)
|
||||
|
||||
@@ -61,7 +61,7 @@ void SimpleAI::Reset()
|
||||
{
|
||||
}
|
||||
|
||||
void SimpleAI::Aggro(Unit *who)
|
||||
void SimpleAI::EnterCombat(Unit *who)
|
||||
{
|
||||
//Reset cast timers
|
||||
if (Spell[0].First_Cast >= 0)
|
||||
|
||||
@@ -25,7 +25,7 @@ struct TRINITY_DLL_DECL SimpleAI : public ScriptedAI
|
||||
|
||||
void Reset();
|
||||
|
||||
void Aggro(Unit *who);
|
||||
void EnterCombat(Unit *who);
|
||||
|
||||
void KilledUnit(Unit *victim);
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ struct TRINITY_DLL_DECL example_creatureAI : public ScriptedAI
|
||||
|
||||
//*** HANDLED FUNCTION ***
|
||||
//Attack Start is called whenever someone hits us.
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
//Say some stuff
|
||||
DoScriptText(SAY_AGGRO, m_creature, who);
|
||||
|
||||
@@ -84,7 +84,7 @@ struct TRINITY_DLL_DECL example_escortAI : public npc_escortAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
if (IsBeingEscorted)
|
||||
{
|
||||
@@ -123,7 +123,7 @@ struct TRINITY_DLL_DECL example_escortAI : public npc_escortAI
|
||||
npc_escortAI::UpdateAI(diff);
|
||||
|
||||
//Combat check
|
||||
if (InCombat && m_creature->getVictim())
|
||||
if (m_creature->getVictim())
|
||||
{
|
||||
if (DeathCoilTimer < diff)
|
||||
{
|
||||
@@ -132,7 +132,8 @@ struct TRINITY_DLL_DECL example_escortAI : public npc_escortAI
|
||||
|
||||
DeathCoilTimer = 4000;
|
||||
}else DeathCoilTimer -= diff;
|
||||
}else
|
||||
}
|
||||
else if(!m_creature->isInCombat())
|
||||
{
|
||||
//Out of combat but being escorted
|
||||
if (IsBeingEscorted)
|
||||
|
||||
@@ -38,7 +38,7 @@ void guardAI::Reset()
|
||||
BuffTimer = 0; //Rebuff as soon as we can
|
||||
}
|
||||
|
||||
void guardAI::Aggro(Unit *who)
|
||||
void guardAI::EnterCombat(Unit *who)
|
||||
{
|
||||
if (m_creature->GetEntry() == 15184)
|
||||
{
|
||||
@@ -69,7 +69,7 @@ void guardAI::UpdateAI(const uint32 diff)
|
||||
else GlobalCooldown = 0;
|
||||
|
||||
//Buff timer (only buff when we are alive and not in combat
|
||||
if (m_creature->isAlive() && !InCombat)
|
||||
if (m_creature->isAlive() && !m_creature->isInCombat())
|
||||
if (BuffTimer < diff )
|
||||
{
|
||||
//Find a spell that targets friendly and applies an aura (these are generally buffs)
|
||||
|
||||
@@ -16,7 +16,7 @@ struct TRINITY_DLL_DECL guardAI : public ScriptedAI
|
||||
|
||||
void Reset();
|
||||
|
||||
void Aggro(Unit *who);
|
||||
void EnterCombat(Unit *who);
|
||||
|
||||
void JustDied(Unit *Killer);
|
||||
|
||||
|
||||
@@ -2513,7 +2513,7 @@ struct TRINITY_DLL_DECL guard_shattrath_aldorAI : public guardAI
|
||||
CanTeleport = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -2709,7 +2709,7 @@ struct TRINITY_DLL_DECL guard_shattrath_scryerAI : public guardAI
|
||||
CanTeleport = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
|
||||
@@ -31,31 +31,23 @@ void npc_escortAI::AttackStart(Unit *who)
|
||||
if (IsBeingEscorted && !Defend)
|
||||
return;
|
||||
|
||||
|
||||
if ( m_creature->Attack(who, true) )
|
||||
{
|
||||
m_creature->AddThreat(who, 0.0f);
|
||||
|
||||
if (!InCombat)
|
||||
{
|
||||
InCombat = true;
|
||||
|
||||
if (IsBeingEscorted)
|
||||
{
|
||||
//Store last position
|
||||
m_creature->GetPosition(LastPos.x, LastPos.y, LastPos.z);
|
||||
|
||||
debug_log("TSCR: EscortAI has entered combat and stored last location.");
|
||||
}
|
||||
|
||||
Aggro(who);
|
||||
}
|
||||
|
||||
m_creature->GetMotionMaster()->MovementExpired();
|
||||
if ( m_creature->Attack(who, true) )
|
||||
{
|
||||
m_creature->GetMotionMaster()->MoveChase(who);
|
||||
}
|
||||
}
|
||||
|
||||
void npc_escortAI::EnterCombat(Unit *who)
|
||||
{
|
||||
if (IsBeingEscorted)
|
||||
{
|
||||
//Store last position
|
||||
m_creature->GetPosition(LastPos.x, LastPos.y, LastPos.z);
|
||||
|
||||
debug_log("TSCR: EscortAI has entered combat and stored last location.");
|
||||
}
|
||||
}
|
||||
|
||||
void npc_escortAI::MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
if (IsBeingEscorted && !Attack)
|
||||
@@ -69,7 +61,6 @@ void npc_escortAI::MoveInLineOfSight(Unit *who)
|
||||
|
||||
void npc_escortAI::JustRespawned()
|
||||
{
|
||||
InCombat = false;
|
||||
IsBeingEscorted = false;
|
||||
IsOnHold = false;
|
||||
|
||||
@@ -81,8 +72,6 @@ void npc_escortAI::JustRespawned()
|
||||
|
||||
void npc_escortAI::EnterEvadeMode()
|
||||
{
|
||||
InCombat = false;
|
||||
|
||||
m_creature->RemoveAllAuras();
|
||||
m_creature->DeleteThreatList();
|
||||
m_creature->CombatStop();
|
||||
@@ -108,7 +97,7 @@ void npc_escortAI::EnterEvadeMode()
|
||||
void npc_escortAI::UpdateAI(const uint32 diff)
|
||||
{
|
||||
//Waypoint Updating
|
||||
if (IsBeingEscorted && !InCombat && WaitTimer && !Returning)
|
||||
if (IsBeingEscorted && !m_creature->isInCombat() && WaitTimer && !Returning)
|
||||
{
|
||||
if (WaitTimer <= diff)
|
||||
{
|
||||
@@ -177,7 +166,7 @@ void npc_escortAI::UpdateAI(const uint32 diff)
|
||||
}
|
||||
|
||||
//Check if player is within range
|
||||
if (IsBeingEscorted && !InCombat && PlayerGUID)
|
||||
if (IsBeingEscorted && !m_creature->isInCombat() && PlayerGUID)
|
||||
{
|
||||
if (PlayerTimer < diff)
|
||||
{
|
||||
@@ -326,7 +315,7 @@ void npc_escortAI::SetRun(bool bRun)
|
||||
|
||||
void npc_escortAI::Start(bool bAttack, bool bDefend, bool bRun, uint64 pGUID)
|
||||
{
|
||||
if (InCombat)
|
||||
if (m_creature->isInCombat())
|
||||
{
|
||||
debug_log("SD2 ERROR: EscortAI attempt to Start while in combat");
|
||||
return;
|
||||
|
||||
@@ -34,15 +34,13 @@ struct TRINITY_DLL_DECL npc_escortAI : public ScriptedAI
|
||||
// Pure Virtual Functions
|
||||
virtual void WaypointReached(uint32) = 0;
|
||||
|
||||
virtual void Aggro(Unit*) = 0;
|
||||
|
||||
virtual void Reset() = 0;
|
||||
|
||||
// CreatureAI functions
|
||||
npc_escortAI(Creature *c) : ScriptedAI(c), IsBeingEscorted(false), PlayerTimer(1000), MaxPlayerDistance(DEFAULT_MAX_PLAYER_DISTANCE), CanMelee(true), DespawnAtEnd(true), DespawnAtFar(true) {m_creature->GetPosition(LastPos.x, LastPos.y, LastPos.z);}
|
||||
|
||||
bool IsVisible(Unit*) const;
|
||||
|
||||
void EnterCombat(Unit *);
|
||||
|
||||
void AttackStart(Unit*);
|
||||
|
||||
void MoveInLineOfSight(Unit*);
|
||||
|
||||
@@ -65,7 +65,7 @@ struct TRINITY_DLL_DECL npc_chicken_cluckAI : public ScriptedAI
|
||||
m_creature->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -172,7 +172,7 @@ struct TRINITY_DLL_DECL npc_dancing_flamesAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit* who){}
|
||||
void EnterCombat(Unit* who){}
|
||||
|
||||
void ReceiveEmote( Player *player, uint32 emote )
|
||||
{
|
||||
@@ -306,7 +306,7 @@ struct TRINITY_DLL_DECL npc_doctorAI : public ScriptedAI
|
||||
void PatientSaved(Creature* soldier, Player* player, Location* Point);
|
||||
void UpdateAI(const uint32 diff);
|
||||
|
||||
void Aggro(Unit* who){}
|
||||
void EnterCombat(Unit* who){}
|
||||
};
|
||||
|
||||
/*#####
|
||||
@@ -353,7 +353,7 @@ struct TRINITY_DLL_DECL npc_injured_patientAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit* who){}
|
||||
void EnterCombat(Unit* who){}
|
||||
|
||||
void SpellHit(Unit *caster, const SpellEntry *spell)
|
||||
{
|
||||
@@ -646,14 +646,14 @@ struct TRINITY_DLL_DECL npc_garments_of_questsAI : public npc_escortAI
|
||||
m_creature->SetHealth(int(m_creature->GetMaxHealth()*0.7));
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void SpellHit(Unit* pCaster, const SpellEntry *Spell)
|
||||
{
|
||||
if (Spell->Id == SPELL_LESSER_HEAL_R2 || Spell->Id == SPELL_FORTITUDE_R1)
|
||||
{
|
||||
//not while in combat
|
||||
if (InCombat)
|
||||
if (m_creature->isInCombat())
|
||||
return;
|
||||
|
||||
//nothing to be done now
|
||||
@@ -764,7 +764,7 @@ struct TRINITY_DLL_DECL npc_garments_of_questsAI : public npc_escortAI
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (bCanRun && !InCombat)
|
||||
if (bCanRun && !m_creature->isInCombat())
|
||||
{
|
||||
if (RunAwayTimer <= diff)
|
||||
{
|
||||
@@ -816,7 +816,7 @@ struct TRINITY_DLL_DECL npc_guardianAI : public ScriptedAI
|
||||
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1147,7 +1147,7 @@ struct TRINITY_DLL_DECL npc_steam_tonkAI : public ScriptedAI
|
||||
npc_steam_tonkAI(Creature *c) : ScriptedAI(c) {}
|
||||
|
||||
void Reset() {}
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void OnPossess(bool apply)
|
||||
{
|
||||
@@ -1186,7 +1186,7 @@ struct TRINITY_DLL_DECL npc_tonk_mineAI : public ScriptedAI
|
||||
ExplosionTimer = 3000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
void AttackStart(Unit *who) {}
|
||||
void MoveInLineOfSight(Unit *who) {}
|
||||
|
||||
@@ -1265,7 +1265,7 @@ struct TRINITY_DLL_DECL npc_snake_trap_serpentsAI : public ScriptedAI
|
||||
Unit *Owner;
|
||||
bool IsViper;
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void Reset()
|
||||
{
|
||||
@@ -1289,9 +1289,6 @@ struct TRINITY_DLL_DECL npc_snake_trap_serpentsAI : public ScriptedAI
|
||||
uint32 delta = (rand() % 7) *100;
|
||||
m_creature->SetStatFloatValue(UNIT_FIELD_BASEATTACKTIME, Info->baseattacktime + delta);
|
||||
m_creature->SetStatFloatValue(UNIT_FIELD_RANGED_ATTACK_POWER , Info->attackpower);
|
||||
|
||||
InCombat = false;
|
||||
|
||||
}
|
||||
|
||||
//Redefined for random target selection:
|
||||
@@ -1313,7 +1310,6 @@ struct TRINITY_DLL_DECL npc_snake_trap_serpentsAI : public ScriptedAI
|
||||
m_creature->setAttackTimer(BASE_ATTACK, (rand() % 10) * 100);
|
||||
SpellTimer = (rand() % 10) * 100;
|
||||
AttackStart(who);
|
||||
InCombat = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1325,7 +1321,7 @@ struct TRINITY_DLL_DECL npc_snake_trap_serpentsAI : public ScriptedAI
|
||||
return;
|
||||
|
||||
//Follow if not in combat
|
||||
if (!m_creature->hasUnitState(UNIT_STAT_FOLLOW)&& !InCombat)
|
||||
if (!m_creature->hasUnitState(UNIT_STAT_FOLLOW)&& !m_creature->isInCombat())
|
||||
{
|
||||
m_creature->GetMotionMaster()->Clear();
|
||||
m_creature->GetMotionMaster()->MoveFollow(Owner,PET_FOLLOW_DIST,PET_FOLLOW_ANGLE);
|
||||
@@ -1334,11 +1330,9 @@ struct TRINITY_DLL_DECL npc_snake_trap_serpentsAI : public ScriptedAI
|
||||
//No victim -> get new from owner (need this because MoveInLineOfSight won't work while following -> corebug)
|
||||
if (!m_creature->getVictim())
|
||||
{
|
||||
if (InCombat)
|
||||
if (m_creature->isInCombat())
|
||||
DoStopAttack();
|
||||
|
||||
InCombat = false;
|
||||
|
||||
if(Owner->getAttackerForHelper())
|
||||
AttackStart(Owner->getAttackerForHelper());
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ struct TRINITY_DLL_DECL npc_ravenholdtAI : public ScriptedAI
|
||||
((Player*)who)->KilledMonster(m_creature->GetEntry(),m_creature->GetGUID() );
|
||||
}
|
||||
|
||||
void Aggro(Unit* who) { }
|
||||
void EnterCombat(Unit* who) { }
|
||||
};
|
||||
CreatureAI* GetAI_npc_ravenholdt(Creature *_Creature)
|
||||
{
|
||||
|
||||
@@ -91,7 +91,7 @@ struct TRINITY_DLL_DECL npc_professor_phizzlethorpeAI : public npc_escortAI
|
||||
m_creature->setFaction(35);
|
||||
}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature, NULL);
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ struct TRINITY_DLL_DECL npc_torekAI : public npc_escortAI
|
||||
Completed = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ struct TRINITY_DLL_DECL npc_ruul_snowhoofAI : public npc_escortAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit* who) {}
|
||||
void EnterCombat(Unit* who) {}
|
||||
|
||||
void Reset()
|
||||
{
|
||||
|
||||
+3
-3
@@ -51,7 +51,7 @@ struct TRINITY_DLL_DECL mob_stolen_soulAI : public ScriptedAI
|
||||
Class_Timer = 1000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{ }
|
||||
|
||||
void SetMyClass(uint8 myclass)
|
||||
@@ -184,7 +184,7 @@ struct TRINITY_DLL_DECL boss_exarch_maladaarAI : public ScriptedAI
|
||||
}
|
||||
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
switch (rand()%3)
|
||||
{
|
||||
@@ -312,7 +312,7 @@ struct TRINITY_DLL_DECL mob_avatar_of_martyredAI : public ScriptedAI
|
||||
Mortal_Strike_timer = 10000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -59,7 +59,7 @@ struct TRINITY_DLL_DECL boss_shirrak_the_dead_watcherAI : public ScriptedAI
|
||||
focusedTarget = NULL;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{ }
|
||||
|
||||
void JustSummoned(Creature *summoned)
|
||||
@@ -165,7 +165,7 @@ struct TRINITY_DLL_DECL mob_focus_fireAI : public ScriptedAI
|
||||
fiery1 = fiery2 = true;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{ }
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
|
||||
+2
-2
@@ -99,7 +99,7 @@ struct TRINITY_DLL_DECL boss_nexusprince_shaffarAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
switch(rand()%3)
|
||||
{
|
||||
@@ -222,7 +222,7 @@ struct TRINITY_DLL_DECL mob_ethereal_beaconAI : public ScriptedAI
|
||||
ArcaneBolt_Timer = 1000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ struct TRINITY_DLL_DECL boss_pandemoniusAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
switch(rand()%3)
|
||||
{
|
||||
|
||||
+5
-5
@@ -83,7 +83,7 @@ struct TRINITY_DLL_DECL boss_darkweaver_sythAI : public ScriptedAI
|
||||
summon10 = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
switch(rand()%3)
|
||||
{
|
||||
@@ -222,7 +222,7 @@ struct TRINITY_DLL_DECL mob_syth_fireAI : public ScriptedAI
|
||||
flamebuffet_timer = 5000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) { }
|
||||
void EnterCombat(Unit *who) { }
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -273,7 +273,7 @@ struct TRINITY_DLL_DECL mob_syth_arcaneAI : public ScriptedAI
|
||||
arcanebuffet_timer = 5000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) { }
|
||||
void EnterCombat(Unit *who) { }
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -324,7 +324,7 @@ struct TRINITY_DLL_DECL mob_syth_frostAI : public ScriptedAI
|
||||
frostbuffet_timer = 5000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) { }
|
||||
void EnterCombat(Unit *who) { }
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -375,7 +375,7 @@ struct TRINITY_DLL_DECL mob_syth_shadowAI : public ScriptedAI
|
||||
shadowbuffet_timer = 5000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) { }
|
||||
void EnterCombat(Unit *who) { }
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ struct TRINITY_DLL_DECL boss_talon_king_ikissAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
switch(rand()%3)
|
||||
{
|
||||
|
||||
+2
-2
@@ -115,7 +115,7 @@ struct TRINITY_DLL_DECL boss_ambassador_hellmawAI : public ScriptedAI
|
||||
pInstance->SetData(TYPE_HELLMAW, IN_PROGRESS);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
switch(rand()%3)
|
||||
{
|
||||
@@ -157,7 +157,7 @@ struct TRINITY_DLL_DECL boss_ambassador_hellmawAI : public ScriptedAI
|
||||
}else EventCheck_Timer -= diff;
|
||||
}
|
||||
|
||||
if (!InCombat && !IsBanished)
|
||||
if (!m_creature->isInCombat() && !IsBanished)
|
||||
{
|
||||
//this is where we add MovePoint()
|
||||
//DoWhine("I haz no mount!", LANG_UNIVERSAL, NULL);
|
||||
|
||||
+1
-1
@@ -95,7 +95,7 @@ struct TRINITY_DLL_DECL boss_blackheart_the_inciterAI : public ScriptedAI
|
||||
pInstance->SetData(DATA_BLACKHEARTTHEINCITEREVENT, DONE);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
switch(rand()%3)
|
||||
{
|
||||
|
||||
+2
-2
@@ -79,7 +79,7 @@ struct TRINITY_DLL_DECL mob_voidtravelerAI : public ScriptedAI
|
||||
sacrificed = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who){}
|
||||
void EnterCombat(Unit *who){}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -219,7 +219,7 @@ struct TRINITY_DLL_DECL boss_grandmaster_vorpilAI : public ScriptedAI
|
||||
pInstance->SetData(DATA_GRANDMASTERVORPILEVENT, DONE);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
switch(rand()%3)
|
||||
{
|
||||
|
||||
@@ -82,7 +82,7 @@ struct TRINITY_DLL_DECL boss_murmurAI : public Scripted_NoMovementAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) { }
|
||||
void EnterCombat(Unit *who) { }
|
||||
|
||||
// Sonic Boom instant damage (needs core fix instead of this)
|
||||
void SpellHitTarget(Unit *target, const SpellEntry *spell)
|
||||
|
||||
+2
-16
@@ -109,20 +109,6 @@ struct TRINITY_DLL_DECL instance_shadow_labyrinth : public ScriptedInstance
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void HandleGameObject(uint64 guid, uint32 state)
|
||||
{
|
||||
Player *player = GetPlayerInMap();
|
||||
|
||||
if (!player || !guid)
|
||||
{
|
||||
debug_log("TSCR: Shadow Labyrinth: HandleGameObject fail");
|
||||
return;
|
||||
}
|
||||
|
||||
if (GameObject *go = GameObject::GetGameObject(*player,guid))
|
||||
go->SetGoState(state);
|
||||
}
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
{
|
||||
switch(type)
|
||||
@@ -149,7 +135,7 @@ struct TRINITY_DLL_DECL instance_shadow_labyrinth : public ScriptedInstance
|
||||
case DATA_BLACKHEARTTHEINCITEREVENT:
|
||||
if( data == DONE )
|
||||
{
|
||||
HandleGameObject(RefectoryDoorGUID,0);
|
||||
HandleGameObject(RefectoryDoorGUID, true);
|
||||
}
|
||||
Encounter[2] = data;
|
||||
break;
|
||||
@@ -157,7 +143,7 @@ struct TRINITY_DLL_DECL instance_shadow_labyrinth : public ScriptedInstance
|
||||
case DATA_GRANDMASTERVORPILEVENT:
|
||||
if( data == DONE )
|
||||
{
|
||||
HandleGameObject(ScreamingHallDoorGUID,0);
|
||||
HandleGameObject(ScreamingHallDoorGUID, true);
|
||||
}
|
||||
Encounter[3] = data;
|
||||
break;
|
||||
|
||||
@@ -42,7 +42,7 @@ struct TRINITY_DLL_DECL boss_amanitarAI : public ScriptedAI
|
||||
|
||||
void Reset() {}
|
||||
|
||||
void Aggro(Unit* who) {}
|
||||
void EnterCombat(Unit* who) {}
|
||||
void AttackStart(Unit* who) {}
|
||||
void MoveInLineOfSight(Unit* who) {}
|
||||
void UpdateAI(const uint32 diff)
|
||||
|
||||
@@ -79,7 +79,7 @@ struct TRINITY_DLL_DECL boss_elder_nadoxAI : public ScriptedAI
|
||||
pInstance->SetData(DATA_ELDER_NADOX_EVENT, NOT_STARTED);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
DoScriptText(SAY_DEATH,m_creature);
|
||||
|
||||
@@ -195,7 +195,7 @@ struct TRINITY_DLL_DECL mob_ahnkahar_nerubianAI : public ScriptedAI
|
||||
DoCast(m_creature,SPELL_GUARDIAN_AURA,true);
|
||||
sprint_Timer = 10000;
|
||||
}
|
||||
void Aggro(Unit *who){}
|
||||
void EnterCombat(Unit *who){}
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if(m_creature->GetEntry() == 30176)
|
||||
|
||||
@@ -57,7 +57,7 @@ struct TRINITY_DLL_DECL boss_volazjAI : public ScriptedAI
|
||||
uint32 phase;
|
||||
|
||||
void Reset() {}
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ struct TRINITY_DLL_DECL boss_jedogaAI : public ScriptedAI
|
||||
boss_jedogaAI(Creature *c) : ScriptedAI(c) {}
|
||||
|
||||
void Reset() {}
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ struct TRINITY_DLL_DECL boss_taldaramAI : public ScriptedAI
|
||||
boss_taldaramAI(Creature *c) : ScriptedAI(c) {}
|
||||
|
||||
void Reset() {}
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ struct TRINITY_DLL_DECL boss_anub_arakAI : public ScriptedAI
|
||||
uint32 phase;
|
||||
|
||||
void Reset() {}
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ struct TRINITY_DLL_DECL boss_hadronoxAI : public ScriptedAI
|
||||
uint32 phase;
|
||||
|
||||
void Reset() {}
|
||||
void Aggro(Unit* who) {}
|
||||
void EnterCombat(Unit* who) {}
|
||||
void AttackStart(Unit* who) {}
|
||||
void MoveInLineOfSight(Unit* who) {}
|
||||
void UpdateAI(const uint32 diff)
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ struct TRINITY_DLL_DECL boss_krik_thirAI : public ScriptedAI
|
||||
|
||||
void Reset() {}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ struct TRINITY_DLL_DECL mobs_spitelashesAI : public ScriptedAI
|
||||
spellhit = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) { }
|
||||
void EnterCombat(Unit *who) { }
|
||||
|
||||
void SpellHit(Unit *Hitter, const SpellEntry *Spellkind)
|
||||
{
|
||||
@@ -382,7 +382,7 @@ struct TRINITY_DLL_DECL mob_rizzle_sprysprocketAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit* who) {}
|
||||
void EnterCombat(Unit* who) {}
|
||||
|
||||
void MovementInform(uint32 type, uint32 id)
|
||||
{
|
||||
@@ -475,7 +475,7 @@ struct TRINITY_DLL_DECL mob_depth_chargeAI : public ScriptedAI
|
||||
return;
|
||||
}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ struct TRINITY_DLL_DECL boss_azuregosAI : public ScriptedAI
|
||||
Enraged = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
|
||||
@@ -82,7 +82,7 @@ struct TRINITY_DLL_DECL npc_draenei_survivorAI : public ScriptedAI
|
||||
m_creature->SetStandState(UNIT_STAND_STATE_SLEEP);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
@@ -206,11 +206,11 @@ struct TRINITY_DLL_DECL npc_engineer_spark_overgrindAI : public ScriptedAI
|
||||
m_creature->setFaction(875);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) { }
|
||||
void EnterCombat(Unit *who) { }
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if( !InCombat )
|
||||
if( !m_creature->isInCombat() )
|
||||
{
|
||||
if (Emote_Timer < diff)
|
||||
{
|
||||
@@ -278,7 +278,7 @@ struct TRINITY_DLL_DECL npc_injured_draeneiAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
@@ -341,7 +341,7 @@ struct TRINITY_DLL_DECL npc_magwinAI : public npc_escortAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature, who);
|
||||
}
|
||||
@@ -460,7 +460,7 @@ struct TRINITY_DLL_DECL npc_geezleAI : public ScriptedAI
|
||||
StartEvent();
|
||||
}
|
||||
|
||||
void Aggro(Unit* who){}
|
||||
void EnterCombat(Unit* who){}
|
||||
|
||||
void StartEvent()
|
||||
{
|
||||
@@ -576,7 +576,7 @@ struct TRINITY_DLL_DECL mob_nestlewood_owlkinAI : public ScriptedAI
|
||||
Hitted = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who){}
|
||||
void EnterCombat(Unit *who){}
|
||||
|
||||
void SpellHit(Unit* caster, const SpellEntry* spell)
|
||||
{
|
||||
|
||||
@@ -140,7 +140,7 @@ struct TRINITY_DLL_DECL npc_taskmaster_fizzuleAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit* who) { }
|
||||
void EnterCombat(Unit* who) { }
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -233,7 +233,7 @@ struct TRINITY_DLL_DECL npc_twiggy_flatheadAI : public ScriptedAI
|
||||
BigWill = 0;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) { }
|
||||
void EnterCombat(Unit *who) { }
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
@@ -462,7 +462,7 @@ struct TRINITY_DLL_DECL npc_wizzlecrank_shredderAI : public npc_escortAI
|
||||
m_creature->setFaction(69);
|
||||
}
|
||||
|
||||
void Aggro(Unit* who){}
|
||||
void EnterCombat(Unit* who){}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
{
|
||||
|
||||
@@ -115,7 +115,7 @@ struct TRINITY_DLL_DECL boss_gurtogg_bloodboilAI : public ScriptedAI
|
||||
m_creature->ApplySpellImmune(0, IMMUNITY_EFFECT,SPELL_EFFECT_ATTACK_ME, false);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
DoZoneInCombat();
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
|
||||
@@ -429,7 +429,7 @@ struct TRINITY_DLL_DECL boss_illidan_stormrageAI : public ScriptedAI
|
||||
Timer[EVENT_FLIGHT_SEQUENCE] = 1000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
m_creature->setActive(true);
|
||||
DoZoneInCombat();
|
||||
@@ -903,7 +903,7 @@ struct TRINITY_DLL_DECL flame_of_azzinothAI : public ScriptedAI
|
||||
GlaiveGUID = 0;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {DoZoneInCombat();}
|
||||
void EnterCombat(Unit *who) {DoZoneInCombat();}
|
||||
|
||||
void ChargeCheck()
|
||||
{
|
||||
@@ -1043,10 +1043,9 @@ struct TRINITY_DLL_DECL npc_akama_illidanAI : public ScriptedAI
|
||||
m_creature->RemoveAllAuras();
|
||||
m_creature->DeleteThreatList();
|
||||
m_creature->CombatStop();
|
||||
InCombat = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
void MoveInLineOfSight(Unit *) {}
|
||||
|
||||
void MovementInform(uint32 MovementType, uint32 Data) {Timer = 1;}
|
||||
@@ -1390,7 +1389,7 @@ struct TRINITY_DLL_DECL boss_maievAI : public ScriptedAI
|
||||
m_creature->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + 2, 45738);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
void MoveInLineOfSight(Unit *who) {}
|
||||
void EnterEvadeMode() {}
|
||||
void GetIllidanGUID(uint64 guid) { IllidanGUID = guid; }
|
||||
@@ -1614,7 +1613,7 @@ struct TRINITY_DLL_DECL cage_trap_triggerAI : public ScriptedAI
|
||||
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who){}
|
||||
void EnterCombat(Unit *who){}
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
@@ -1688,7 +1687,7 @@ struct TRINITY_DLL_DECL shadow_demonAI : public ScriptedAI
|
||||
|
||||
uint64 TargetGUID;
|
||||
|
||||
void Aggro(Unit *who) {DoZoneInCombat();}
|
||||
void EnterCombat(Unit *who) {DoZoneInCombat();}
|
||||
|
||||
void Reset()
|
||||
{
|
||||
@@ -1744,7 +1743,7 @@ struct TRINITY_DLL_DECL mob_parasitic_shadowfiendAI : public ScriptedAI
|
||||
DoCast(m_creature, SPELL_SHADOWFIEND_PASSIVE, true);
|
||||
}
|
||||
|
||||
void Aggro(Unit* who) { DoZoneInCombat(); }
|
||||
void EnterCombat(Unit* who) { DoZoneInCombat(); }
|
||||
|
||||
void DoMeleeAttackIfReady()
|
||||
{
|
||||
|
||||
@@ -123,7 +123,7 @@ struct TRINITY_DLL_DECL boss_shahrazAI : public ScriptedAI
|
||||
Enraged = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
if(pInstance)
|
||||
pInstance->SetData(DATA_MOTHERSHAHRAZEVENT, IN_PROGRESS);
|
||||
|
||||
@@ -107,7 +107,7 @@ struct TRINITY_DLL_DECL npc_enslaved_soulAI : public ScriptedAI
|
||||
|
||||
void Reset() {ReliquaryGUID = 0;}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
m_creature->CastSpell(m_creature, ENSLAVED_SOUL_PASSIVE, true);
|
||||
DoZoneInCombat();
|
||||
@@ -157,7 +157,7 @@ struct TRINITY_DLL_DECL boss_reliquary_of_soulsAI : public ScriptedAI
|
||||
m_creature->RemoveAurasDueToSpell(SPELL_SUBMERGE);
|
||||
}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
m_creature->AddThreat(who, 10000.0f);
|
||||
DoZoneInCombat();
|
||||
@@ -169,15 +169,6 @@ struct TRINITY_DLL_DECL boss_reliquary_of_soulsAI : public ScriptedAI
|
||||
Timer = 0;
|
||||
}
|
||||
|
||||
void AttackStart(Unit* who)
|
||||
{
|
||||
if (!InCombat)
|
||||
{
|
||||
Aggro(who);
|
||||
InCombat = true;
|
||||
}
|
||||
}
|
||||
|
||||
bool SummonSoul()
|
||||
{
|
||||
uint32 random = rand()%6;
|
||||
@@ -197,8 +188,6 @@ struct TRINITY_DLL_DECL boss_reliquary_of_soulsAI : public ScriptedAI
|
||||
{
|
||||
if(pInstance)
|
||||
pInstance->SetData(DATA_RELIQUARYOFSOULSEVENT, DONE);
|
||||
|
||||
InCombat = false;
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
@@ -361,7 +350,7 @@ struct TRINITY_DLL_DECL boss_essence_of_sufferingAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
DoScriptText(SUFF_SAY_FREED, m_creature);
|
||||
DoZoneInCombat();
|
||||
@@ -405,7 +394,7 @@ struct TRINITY_DLL_DECL boss_essence_of_sufferingAI : public ScriptedAI
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if(InCombat)
|
||||
if(m_creature->isInCombat())
|
||||
{
|
||||
//Supposed to be cast on nearest target
|
||||
if(FixateTimer < diff)
|
||||
@@ -484,7 +473,7 @@ struct TRINITY_DLL_DECL boss_essence_of_desireAI : public ScriptedAI
|
||||
m_creature->InterruptSpell(CURRENT_GENERIC_SPELL, false);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
DoScriptText(DESI_SAY_FREED, m_creature);
|
||||
DoZoneInCombat();
|
||||
@@ -563,7 +552,7 @@ struct TRINITY_DLL_DECL boss_essence_of_angerAI : public ScriptedAI
|
||||
CheckedAggro = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
switch(rand()%2)
|
||||
{
|
||||
|
||||
@@ -113,7 +113,7 @@ struct TRINITY_DLL_DECL mob_ashtongue_channelerAI : public ScriptedAI
|
||||
|
||||
void Reset() { ShadeGUID = 0; }
|
||||
void JustDied(Unit* killer);
|
||||
void Aggro(Unit* who) {}
|
||||
void EnterCombat(Unit* who) {}
|
||||
void AttackStart(Unit* who) {}
|
||||
void MoveInLineOfSight(Unit* who) {}
|
||||
void UpdateAI(const uint32 diff) {}
|
||||
@@ -135,7 +135,7 @@ struct TRINITY_DLL_DECL mob_ashtongue_sorcererAI : public ScriptedAI
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer);
|
||||
void Aggro(Unit* who) {}
|
||||
void EnterCombat(Unit* who) {}
|
||||
void AttackStart(Unit* who) {}
|
||||
void MoveInLineOfSight(Unit* who) {}
|
||||
void UpdateAI(const uint32 diff)
|
||||
@@ -274,8 +274,6 @@ struct TRINITY_DLL_DECL boss_shade_of_akamaAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit* who) { }
|
||||
|
||||
void AttackStart(Unit* who)
|
||||
{
|
||||
if(!who || IsBanished) return;
|
||||
@@ -381,7 +379,7 @@ struct TRINITY_DLL_DECL boss_shade_of_akamaAI : public ScriptedAI
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if(!InCombat)
|
||||
if(!m_creature->isInCombat())
|
||||
return;
|
||||
|
||||
if(IsBanished)
|
||||
@@ -555,7 +553,7 @@ struct TRINITY_DLL_DECL npc_akamaAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit* who) {}
|
||||
void EnterCombat(Unit* who) {}
|
||||
|
||||
void BeginEvent(Player* pl)
|
||||
{
|
||||
@@ -574,8 +572,8 @@ struct TRINITY_DLL_DECL npc_akamaAI : public ScriptedAI
|
||||
m_creature->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
||||
((boss_shade_of_akamaAI*)Shade->AI())->SetAkamaGUID(m_creature->GetGUID());
|
||||
((boss_shade_of_akamaAI*)Shade->AI())->SetSelectableChannelers();
|
||||
((boss_shade_of_akamaAI*)Shade->AI())->InCombat = true;
|
||||
Shade->AddThreat(m_creature, 1000000.0f);
|
||||
m_creature->CombatStart(Shade);
|
||||
Shade->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_NONE);
|
||||
Shade->SetUInt64Value(UNIT_FIELD_TARGET, m_creature->GetGUID());
|
||||
if(pl) Shade->AddThreat(pl, 1.0f);
|
||||
|
||||
@@ -91,7 +91,7 @@ struct TRINITY_DLL_DECL boss_supremusAI : public ScriptedAI
|
||||
summons.DespawnAll();
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
if(pInstance)
|
||||
pInstance->SetData(DATA_SUPREMUSEVENT, IN_PROGRESS);
|
||||
@@ -240,7 +240,7 @@ struct TRINITY_DLL_DECL npc_volcanoAI : public ScriptedAI
|
||||
DoCast(m_creature, SPELL_VOLCANIC_ERUPTION);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void MoveInLineOfSight(Unit *who) {}
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ struct TRINITY_DLL_DECL mob_doom_blossomAI : public ScriptedAI
|
||||
TeronGUID = 0;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) { }
|
||||
void EnterCombat(Unit *who) { }
|
||||
void AttackStart(Unit* who) { }
|
||||
void MoveInLineOfSight(Unit* who) { }
|
||||
|
||||
@@ -92,7 +92,7 @@ struct TRINITY_DLL_DECL mob_doom_blossomAI : public ScriptedAI
|
||||
CheckTeronTimer = 5000;
|
||||
}else CheckTeronTimer -= diff;
|
||||
|
||||
if(ShadowBoltTimer < diff && InCombat)
|
||||
if(ShadowBoltTimer < diff && m_creature->isInCombat())
|
||||
{
|
||||
DoCast(SelectUnit(SELECT_TARGET_RANDOM, 0), SPELL_SHADOWBOLT);
|
||||
ShadowBoltTimer = 10000;
|
||||
@@ -134,7 +134,7 @@ struct TRINITY_DLL_DECL mob_shadowy_constructAI : public ScriptedAI
|
||||
CheckTeronTimer = 5000;
|
||||
}
|
||||
|
||||
void Aggro(Unit* who) { }
|
||||
void EnterCombat(Unit* who) { }
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
@@ -237,7 +237,7 @@ struct TRINITY_DLL_DECL boss_teron_gorefiendAI : public ScriptedAI
|
||||
Intro = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
@@ -255,7 +255,7 @@ struct TRINITY_DLL_DECL boss_teron_gorefiendAI : public ScriptedAI
|
||||
m_creature->AddThreat(who, 1.0f);
|
||||
}
|
||||
|
||||
if(!InCombat && !Intro && m_creature->IsWithinDistInMap(who, 60.0f) && (who->GetTypeId() == TYPEID_PLAYER))
|
||||
if(!m_creature->isInCombat() && !Intro && m_creature->IsWithinDistInMap(who, 60.0f) && (who->GetTypeId() == TYPEID_PLAYER))
|
||||
{
|
||||
if(pInstance)
|
||||
pInstance->SetData(DATA_TERONGOREFIENDEVENT, IN_PROGRESS);
|
||||
@@ -427,7 +427,7 @@ struct TRINITY_DLL_DECL boss_teron_gorefiendAI : public ScriptedAI
|
||||
DoomBlossom->setFaction(m_creature->getFaction());
|
||||
DoomBlossom->AddThreat(target, 1.0f);
|
||||
((mob_doom_blossomAI*)DoomBlossom->AI())->SetTeronGUID(m_creature->GetGUID());
|
||||
((mob_doom_blossomAI*)DoomBlossom->AI())->InCombat = true;
|
||||
target->CombatStart(DoomBlossom);
|
||||
SetThreatList(DoomBlossom);
|
||||
SummonDoomBlossomTimer = 35000;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ struct TRINITY_DLL_DECL boss_najentusAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
if(pInstance)
|
||||
pInstance->SetData(DATA_HIGHWARLORDNAJENTUSEVENT, IN_PROGRESS);
|
||||
|
||||
@@ -144,7 +144,7 @@ struct TRINITY_DLL_DECL mob_blood_elf_council_voice_triggerAI : public ScriptedA
|
||||
}else error_log(ERROR_INST_DATA);
|
||||
}
|
||||
|
||||
void Aggro(Unit* who) {}
|
||||
void EnterCombat(Unit* who) {}
|
||||
|
||||
void AttackStart(Unit* who) {}
|
||||
void MoveInLineOfSight(Unit* who) {}
|
||||
@@ -243,7 +243,7 @@ struct TRINITY_DLL_DECL mob_illidari_councilAI : public ScriptedAI
|
||||
m_creature->SetUInt32Value(UNIT_FIELD_DISPLAYID, 11686);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
void AttackStart(Unit* who) {}
|
||||
void MoveInLineOfSight(Unit* who) {}
|
||||
|
||||
@@ -360,7 +360,7 @@ struct TRINITY_DLL_DECL boss_illidari_councilAI : public ScriptedAI
|
||||
|
||||
bool LoadedGUIDs;
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
if(pInstance)
|
||||
{
|
||||
|
||||
@@ -127,8 +127,6 @@ struct TRINITY_DLL_DECL npc_grimstoneAI : public npc_escortAI
|
||||
CanWalk = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) { }
|
||||
|
||||
//TODO: move them to center
|
||||
void SummonRingMob()
|
||||
{
|
||||
@@ -185,6 +183,11 @@ struct TRINITY_DLL_DECL npc_grimstoneAI : public npc_escortAI
|
||||
}
|
||||
}
|
||||
|
||||
void HandleGameObject(uint32 id, bool open)
|
||||
{
|
||||
pInstance->HandleGameObject(pInstance->GetData64(id), open);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (!pInstance)
|
||||
@@ -236,7 +239,7 @@ struct TRINITY_DLL_DECL npc_grimstoneAI : public npc_escortAI
|
||||
{
|
||||
case 0:
|
||||
DoScriptText(-1000000, m_creature);//1
|
||||
DoGate(DATA_ARENA4,1);
|
||||
HandleGameObject(DATA_ARENA4, false);
|
||||
Start(false, false, false);
|
||||
CanWalk = true;
|
||||
Event_Timer = 0;
|
||||
@@ -333,10 +336,6 @@ struct TRINITY_DLL_DECL mob_phalanxAI : public ScriptedAI
|
||||
MightyBlow_Timer = 15000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
//Return since we have no target
|
||||
@@ -538,7 +537,7 @@ struct TRINITY_DLL_DECL npc_dughal_stormwingAI : public npc_escortAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit* who) { }
|
||||
void EnterCombat(Unit* who) { }
|
||||
void Reset() {}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
@@ -671,7 +670,7 @@ struct TRINITY_DLL_DECL npc_marshal_windsorAI : public npc_escortAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
switch(rand()%3)
|
||||
{
|
||||
@@ -867,7 +866,7 @@ struct TRINITY_DLL_DECL npc_marshal_reginald_windsorAI : public npc_escortAI
|
||||
}
|
||||
}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
switch(rand()%3)
|
||||
{
|
||||
@@ -983,7 +982,7 @@ struct TRINITY_DLL_DECL npc_tobias_seecherAI : public npc_escortAI
|
||||
{
|
||||
npc_tobias_seecherAI(Creature *c) :npc_escortAI(c) {}
|
||||
|
||||
void Aggro(Unit* who) { }
|
||||
void EnterCombat(Unit* who) { }
|
||||
void Reset() {}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
@@ -1097,12 +1096,10 @@ struct TRINITY_DLL_DECL npc_rocknotAI : public npc_escortAI
|
||||
BreakDoor_Timer = 0;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) { }
|
||||
|
||||
void DoGo(uint32 id, uint32 state)
|
||||
{
|
||||
if (GameObject *go = GameObject::GetGameObject(*m_creature,pInstance->GetData64(id)))
|
||||
go->SetGoState(state);
|
||||
go->SetGoState((GOState)state);
|
||||
}
|
||||
|
||||
void WaypointReached(uint32 i)
|
||||
|
||||
@@ -42,7 +42,7 @@ struct TRINITY_DLL_DECL boss_ambassador_flamelashAI : public ScriptedAI
|
||||
Spirit_Timer = 24000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void SummonSpirits(Unit* victim)
|
||||
{
|
||||
|
||||
@@ -48,7 +48,7 @@ struct TRINITY_DLL_DECL boss_anubshiahAI : public ScriptedAI
|
||||
EnvelopingWeb_Timer = 16000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ struct TRINITY_DLL_DECL boss_draganthaurissanAI : public ScriptedAI
|
||||
//Counter= 0;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ struct TRINITY_DLL_DECL boss_general_angerforgeAI : public ScriptedAI
|
||||
Medics = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ struct TRINITY_DLL_DECL boss_gorosh_the_dervishAI : public ScriptedAI
|
||||
MortalStrike_Timer = 22000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ struct TRINITY_DLL_DECL boss_grizzleAI : public ScriptedAI
|
||||
Frenzy_Timer =0;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ struct TRINITY_DLL_DECL boss_high_interrogator_gerstahnAI : public ScriptedAI
|
||||
ShadowShield_Timer = 8000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ struct TRINITY_DLL_DECL boss_magmusAI : public ScriptedAI
|
||||
WarStomp_Timer =0;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ struct TRINITY_DLL_DECL boss_moira_bronzebeardAI : public ScriptedAI
|
||||
Smite_Timer = 8000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ struct TRINITY_DLL_DECL boss_angerrelAI : public ScriptedAI
|
||||
Strike_Timer = 12000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ struct TRINITY_DLL_DECL boss_doperelAI : public ScriptedAI
|
||||
Gouge_Timer = 6000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ struct TRINITY_DLL_DECL boss_haterelAI : public ScriptedAI
|
||||
Strike_Timer = 12000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@ struct TRINITY_DLL_DECL boss_vilerelAI : public ScriptedAI
|
||||
Shield_Timer = 3000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ struct TRINITY_DLL_DECL boss_seethrelAI : public ScriptedAI
|
||||
m_creature->CastSpell(m_creature,SPELL_FROSTARMOR,true);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -385,7 +385,7 @@ struct TRINITY_DLL_DECL boss_gloomrelAI : public ScriptedAI
|
||||
m_creature->setFaction(FACTION_NEUTRAL);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -493,7 +493,7 @@ struct TRINITY_DLL_DECL boss_doomrelAI : public ScriptedAI
|
||||
m_creature->setFaction(FACTION_NEUTRAL);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ struct TRINITY_DLL_DECL boss_drakkisathAI : public ScriptedAI
|
||||
Thunderclap_Timer = 17000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ struct TRINITY_DLL_DECL boss_gythAI : public ScriptedAI
|
||||
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ struct TRINITY_DLL_DECL boss_halyconAI : public ScriptedAI
|
||||
Summoned = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ struct TRINITY_DLL_DECL boss_highlordomokkAI : public ScriptedAI
|
||||
Slow_Timer = 24000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ struct TRINITY_DLL_DECL boss_mothersmolderwebAI : public ScriptedAI
|
||||
MothersMilk_Timer = 10000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) { }
|
||||
void EnterCombat(Unit *who) { }
|
||||
|
||||
void DamageTaken(Unit *done_by, uint32 &damage)
|
||||
{
|
||||
|
||||
@@ -58,7 +58,7 @@ struct TRINITY_DLL_DECL boss_overlordwyrmthalakAI : public ScriptedAI
|
||||
Summoned = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ struct TRINITY_DLL_DECL boss_pyroguard_emberseerAI : public ScriptedAI
|
||||
PyroBlast_Timer = 14000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ struct TRINITY_DLL_DECL boss_quatermasterzigrisAI : public ScriptedAI
|
||||
//HelingPotion_Timer = 25000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ struct TRINITY_DLL_DECL boss_rend_blackhandAI : public ScriptedAI
|
||||
Thunderclap_Timer = 9000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ struct TRINITY_DLL_DECL boss_shadowvoshAI : public ScriptedAI
|
||||
//m_creature->CastSpell(m_creature,SPELL_ICEARMOR,true);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ struct TRINITY_DLL_DECL boss_thebeastAI : public ScriptedAI
|
||||
TerrifyingRoar_Timer = 23000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ struct TRINITY_DLL_DECL boss_warmastervooneAI : public ScriptedAI
|
||||
ThrowAxe_Timer = 1000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ struct TRINITY_DLL_DECL boss_broodlordAI : public ScriptedAI
|
||||
m_creature->ApplySpellImmune(1, IMMUNITY_EFFECT,SPELL_EFFECT_ATTACK_ME, true);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
DoZoneInCombat();
|
||||
|
||||
@@ -183,7 +183,7 @@ struct TRINITY_DLL_DECL boss_chromaggusAI : public ScriptedAI
|
||||
Enraged = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ struct TRINITY_DLL_DECL boss_ebonrocAI : public ScriptedAI
|
||||
Heal_Timer = 1000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
DoZoneInCombat();
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ struct TRINITY_DLL_DECL boss_firemawAI : public ScriptedAI
|
||||
FlameBuffet_Timer = 5000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
DoZoneInCombat();
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ struct TRINITY_DLL_DECL boss_flamegorAI : public ScriptedAI
|
||||
Frenzy_Timer = 10000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
DoZoneInCombat();
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ struct TRINITY_DLL_DECL boss_nefarianAI : public ScriptedAI
|
||||
DoScriptText(SAY_DEATH, m_creature);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
switch (rand()%3)
|
||||
{
|
||||
|
||||
@@ -55,7 +55,7 @@ struct TRINITY_DLL_DECL boss_razorgoreAI : public ScriptedAI
|
||||
m_creature->ApplySpellImmune(1, IMMUNITY_EFFECT,SPELL_EFFECT_ATTACK_ME, true);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
DoZoneInCombat();
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ struct TRINITY_DLL_DECL boss_vaelAI : public ScriptedAI
|
||||
DoScriptText(SAY_KILLTARGET, m_creature, victim);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
DoCast(m_creature,SPELL_ESSENCEOFTHERED);
|
||||
DoZoneInCombat();
|
||||
|
||||
@@ -203,7 +203,7 @@ struct TRINITY_DLL_DECL boss_victor_nefariusAI : public ScriptedAI
|
||||
AttackStart(target);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ struct TRINITY_DLL_DECL mobs_bladespire_ogreAI : public ScriptedAI
|
||||
{
|
||||
}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ struct TRINITY_DLL_DECL mobs_nether_drakeAI : public ScriptedAI
|
||||
IntangiblePresence_Timer = 15000;
|
||||
}
|
||||
|
||||
void Aggro(Unit* who) { }
|
||||
void EnterCombat(Unit* who) { }
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
@@ -252,7 +252,7 @@ struct TRINITY_DLL_DECL npc_daranelleAI : public ScriptedAI
|
||||
|
||||
void Reset() { }
|
||||
|
||||
void Aggro(Unit* who) { }
|
||||
void EnterCombat(Unit* who) { }
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
|
||||
@@ -58,7 +58,7 @@ struct TRINITY_DLL_DECL boss_kruulAI : public ScriptedAI
|
||||
Hound_Timer = 8000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ struct TRINITY_DLL_DECL mob_webbed_creatureAI : public ScriptedAI
|
||||
{
|
||||
}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ struct TRINITY_DLL_DECL npc_ragged_johnAI : public ScriptedAI
|
||||
ScriptedAI::MoveInLineOfSight(who);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI_npc_ragged_john(Creature *_Creature)
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ struct TRINITY_DLL_DECL boss_epochAI : public ScriptedAI
|
||||
|
||||
void Reset() {}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
}
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ struct TRINITY_DLL_DECL boss_mal_ganisAI : public ScriptedAI
|
||||
yelled3 = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
}
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ struct TRINITY_DLL_DECL boss_meathookAI : public ScriptedAI
|
||||
Frenzy_Timer = 20000 + rand()%10000; //made it up
|
||||
}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
}
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ struct TRINITY_DLL_DECL boss_salrammAI : public ScriptedAI
|
||||
Summon_ghouls_Timer = 19000 + rand()%5000; //on a video approx 24s after aggro
|
||||
}
|
||||
|
||||
void Aggro(Unit* who)
|
||||
void EnterCombat(Unit* who)
|
||||
{DoScriptText(SAY_AGGRO, m_creature);}
|
||||
|
||||
void AttackStart(Unit* who) {}
|
||||
|
||||
@@ -60,7 +60,7 @@ struct TRINITY_DLL_DECL boss_aeonusAI : public ScriptedAI
|
||||
Frenzy_Timer = 120000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
}
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ struct TRINITY_DLL_DECL boss_chrono_lord_dejaAI : public ScriptedAI
|
||||
TimeLapse_Timer = 15000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ struct TRINITY_DLL_DECL boss_temporusAI : public ScriptedAI
|
||||
SpellReflection_Timer = 40000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ struct TRINITY_DLL_DECL npc_medivh_bmAI : public ScriptedAI
|
||||
//ScriptedAI::AttackStart(who);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void SpellHit(Unit* caster, const SpellEntry* spell)
|
||||
{
|
||||
@@ -272,7 +272,7 @@ struct TRINITY_DLL_DECL npc_time_riftAI : public ScriptedAI
|
||||
else mWaveId = 1;
|
||||
|
||||
}
|
||||
void Aggro(Unit *who) {}
|
||||
void EnterCombat(Unit *who) {}
|
||||
|
||||
void DoSummonAtRift(uint32 creature_entry)
|
||||
{
|
||||
|
||||
@@ -70,7 +70,7 @@ struct TRINITY_DLL_DECL boss_anetheronAI : public hyjal_trashAI
|
||||
pInstance->SetData(DATA_ANETHERONEVENT, NOT_STARTED);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
if(pInstance && IsEvent)
|
||||
pInstance->SetData(DATA_ANETHERONEVENT, IN_PROGRESS);
|
||||
@@ -242,7 +242,7 @@ struct TRINITY_DLL_DECL mob_towering_infernalAI : public ScriptedAI
|
||||
CheckTimer = 5000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -259,11 +259,8 @@ struct TRINITY_DLL_DECL mob_towering_infernalAI : public ScriptedAI
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
if (m_creature->GetDistance(who) <= 50 && !InCombat && m_creature->IsHostileTo(who))
|
||||
{
|
||||
m_creature->AddThreat(who,0.0);
|
||||
m_creature->Attack(who,false);
|
||||
}
|
||||
if (m_creature->GetDistance(who) <= 50 && !m_creature->isInCombat() && m_creature->IsHostileTo(who))
|
||||
AttackStart(who);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
|
||||
@@ -91,7 +91,7 @@ struct mob_ancient_wispAI : public ScriptedAI
|
||||
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
}
|
||||
|
||||
void Aggro(Unit* who) {}
|
||||
void EnterCombat(Unit* who) {}
|
||||
|
||||
void DamageTaken(Unit* done_by, uint32 &damage) { damage = 0; }
|
||||
|
||||
@@ -130,7 +130,7 @@ struct TRINITY_DLL_DECL mob_doomfireAI : public ScriptedAI
|
||||
void Reset() { }
|
||||
|
||||
void MoveInLineOfSight(Unit* who) { }
|
||||
void Aggro(Unit* who) { }
|
||||
void EnterCombat(Unit* who) { }
|
||||
void DamageTaken(Unit *done_by, uint32 &damage) { damage = 0; }
|
||||
};
|
||||
|
||||
@@ -157,7 +157,7 @@ struct TRINITY_DLL_DECL mob_doomfire_targettingAI : public ScriptedAI
|
||||
TargetGUID = who->GetGUID();
|
||||
}
|
||||
|
||||
void Aggro(Unit* who) {}
|
||||
void EnterCombat(Unit* who) {}
|
||||
|
||||
void DamageTaken(Unit *done_by, uint32 &damage) { damage = 0; }
|
||||
|
||||
@@ -262,7 +262,7 @@ struct TRINITY_DLL_DECL boss_archimondeAI : public hyjal_trashAI
|
||||
IsChanneling = false;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
m_creature->InterruptSpell(CURRENT_CHANNELED_SPELL);
|
||||
DoScriptText(SAY_AGGRO, m_creature);
|
||||
@@ -429,7 +429,7 @@ struct TRINITY_DLL_DECL boss_archimondeAI : public hyjal_trashAI
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (!InCombat)
|
||||
if (!m_creature->isInCombat())
|
||||
{
|
||||
if (pInstance)
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@ struct TRINITY_DLL_DECL boss_azgalorAI : public hyjal_trashAI
|
||||
pInstance->SetData(DATA_AZGALOREVENT, NOT_STARTED);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
if(pInstance && IsEvent)
|
||||
pInstance->SetData(DATA_AZGALOREVENT, IN_PROGRESS);
|
||||
@@ -206,7 +206,7 @@ struct TRINITY_DLL_DECL mob_lesser_doomguardAI : public hyjal_trashAI
|
||||
CheckTimer = 5000;
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -222,11 +222,8 @@ struct TRINITY_DLL_DECL mob_lesser_doomguardAI : public hyjal_trashAI
|
||||
|
||||
void MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
if (m_creature->GetDistance(who) <= 50 && !InCombat && m_creature->IsHostileTo(who))
|
||||
{
|
||||
m_creature->AddThreat(who,0.0);
|
||||
m_creature->Attack(who,false);
|
||||
}
|
||||
if (m_creature->GetDistance(who) <= 50 && !m_creature->isInCombat() && m_creature->IsHostileTo(who))
|
||||
AttackStart(who);
|
||||
}
|
||||
|
||||
void JustDied(Unit *victim)
|
||||
|
||||
@@ -58,7 +58,7 @@ struct TRINITY_DLL_DECL boss_kazrogalAI : public hyjal_trashAI
|
||||
pInstance->SetData(DATA_KAZROGALEVENT, NOT_STARTED);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
if(pInstance && IsEvent)
|
||||
pInstance->SetData(DATA_KAZROGALEVENT, IN_PROGRESS);
|
||||
|
||||
@@ -58,7 +58,7 @@ struct TRINITY_DLL_DECL boss_rage_winterchillAI : public hyjal_trashAI
|
||||
pInstance->SetData(DATA_RAGEWINTERCHILLEVENT, NOT_STARTED);
|
||||
}
|
||||
|
||||
void Aggro(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
if(pInstance && IsEvent)
|
||||
pInstance->SetData(DATA_RAGEWINTERCHILLEVENT, IN_PROGRESS);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user