AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
npc_blessed_banner::npc_blessed_bannerAI Struct Reference
Inheritance diagram for npc_blessed_banner::npc_blessed_bannerAI:
ScriptedAI CreatureAI UnitAI

Public Member Functions

 npc_blessed_bannerAI (Creature *creature)
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged - this happens after JustEnteredCombat.
 
void MoveInLineOfSight (Unit *) override
 
void JustSummoned (Creature *summon) override
 
void JustDied (Unit *) override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
 ~ScriptedAI () override
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask) override
 Called at any Damage from any attacker (before damage apply)
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
void JustDied (Unit *) override
 
void KilledUnit (Unit *) override
 
void JustSummoned (Creature *) override
 
void SummonedCreatureDespawn (Creature *) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void MovementInform (uint32, uint32) override
 
void OnPossess (bool)
 
bool IsInRoom (Position const *pos, Axis axis, bool above)
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged - this happens after JustEnteredCombat.
 
void AttackStart (Unit *) override
 
void DoStartMovement (Unit *target, float distance=0.0f, float angle=0.0f)
 
void DoStartNoMovement (Unit *target)
 
void DoStopAttack ()
 
void DoRewardPlayersInArea ()
 
void DoCastSpell (Unit *target, SpellInfo const *spellInfo, bool triggered=false)
 
void DoPlaySoundToSet (WorldObject *source, uint32 soundId)
 
void DoPlayMusic (uint32 soundId, bool zone)
 
void DoAddThreat (Unit *unit, float amount)
 
void DoModifyThreatByPercent (Unit *unit, int32 pct)
 
void DoResetThreat (Unit *unit)
 
void DoResetThreatList ()
 
float DoGetThreat (Unit *unit)
 
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
 
void DoTeleportPlayer (Unit *unit, Position pos)
 
void DoTeleportAll (float x, float y, float z, float o)
 
Unit * DoSelectLowestHpFriendly (float range, uint32 minHPDiff=1)
 
std::list< Creature * > DoFindFriendlyCC (float range)
 
std::list< Creature * > DoFindFriendlyMissingBuff (float range, uint32 spellId)
 
Player * GetPlayerAtMinimumRange (float minRange)
 
Creature * DoSpawnCreature (uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, uint32 despawntime)
 
bool IsUniqueTimedEventDone (uint32 id) const
 
void SetUniqueTimedEventDone (uint32 id)
 
void ResetUniqueTimedEvent (uint32 id)
 
void ClearUniqueTimedEventsDone ()
 
void ScheduleTimedEvent (Milliseconds timerMin, Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0ms, uint32 uniqueId=0)
 
void ScheduleTimedEvent (Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0ms, uint32 uniqueId=0)
 
void ScheduleUniqueTimedEvent (Milliseconds timer, std::function< void()> exec, uint32 uniqueId)
 
bool HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo const * SelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, uint32 powerCostMin, uint32 powerCostMax, float rangeMin, float rangeMax, SelectEffect effect)
 
void SetEquipmentSlots (bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE)
 
virtual bool CheckEvadeIfOutOfCombatArea () const
 
bool IsHeroic () const
 
Difficulty GetDifficulty () const
 
bool Is25ManRaid () const
 
template<class T >
T const & DUNGEON_MODE (T const &normal5, T const &heroic10) const
 
template<class T >
T const & RAID_MODE (T const &normal10, T const &normal25) const
 
template<class T >
T const & RAID_MODE (T const &normal10, T const &normal25, T const &heroic10, T const &heroic25) const
 
Player * SelectTargetFromPlayerList (float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
 
void SetInvincibility (bool apply)
 
bool IsInvincible () const
 
void SetAutoAttackAllowed (bool allow)
 
bool IsAutoAttackAllowed () const
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0ms)
 Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
 
void Talk (uint8 id, Milliseconds delay)
 
WorldObject * GetSummoner () const
 Returns the summoner creature/object, if the creature is a temporary summon.
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
bool IsEngaged () const
 Check if creature is currently engaged in combat.
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual bool IsEscortNPC (bool=true) const
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
void JustEnteredCombat (Unit *who) override
 Called when the unit enters combat.
 
virtual void JustStartedThreateningMe (Unit *who)
 
void EngagementStart (Unit *who)
 
void EngagementOver ()
 
void JustExitedCombat () override
 Called when the unit leaves combat.
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureDespawnAll ()
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void OnSpellStart (SpellInfo const *)
 
virtual void OnSpellCast (SpellInfo const *)
 
virtual void OnSpellFailed (SpellInfo const *)
 
virtual void OnChannelFinished (SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void PathEndReached (uint32)
 
virtual void WaypointPathStarted (uint32)
 == Waypoints system =============================
 
virtual void WaypointStarted (uint32, uint32)
 
virtual void WaypointReached (uint32, uint32)
 
virtual void WaypointPathEnded (uint32, uint32)
 
void OnCharmed (bool apply) override
 Called when unit is charmed.
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *attacker)
 
virtual void OwnerAttacked (Unit *target)
 
void OnOwnerCombatInteraction (Unit *target)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ==================
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields =======================================
 
virtual bool BeforeSpellClick (Unit *)
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual bool CanAlwaysBeDetectable (WorldObject const *)
 
virtual void PetStopAttack ()
 
int32 VisualizeBoundary (uint32 duration, Unit *owner=nullptr, bool fill=false, bool checkZ=false) const
 
virtual bool CheckInRoom ()
 
CreatureBoundary const * GetBoundary () const
 
void SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false)
 
bool IsInBoundary (Position const *who=nullptr) const
 
virtual void CalculateThreat (Unit *, float &, SpellInfo const *)
 
virtual bool OnTeleportUnreacheablePlayer (Player *)
 
virtual void OnAuraRemove (AuraApplication *, AuraRemoveMode)
 
virtual void DistancingStarted ()
 
virtual void DistancingEnded ()
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void InitializeAI ()
 
virtual void DoAction (int32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid const &, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
Unit * SelectTarget (SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
Unit * SelectTarget (SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 Select the best (up to) <num> targets (in <targetType> order) from the threat list that fulfill the following:
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
virtual void OnDespawn ()
 Called when the unit is about to be removed from the world (despawn, grid unload, corpse disappearing, player logging out etc.)
 
virtual void EvadeTimerExpired ()
 Called when evade timer expires (target unreachable for too long)
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage to any victim (before damage apply)
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal.
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates.
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals.
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations.
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT)
 
void AttackStartCaster (Unit *victim, float dist)
 
SpellCastResult DoAddAuraToAllHostilePlayers (uint32 spellid)
 
SpellCastResult DoCast (uint32 spellId)
 
SpellCastResult DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastSelf (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastToAllHostilePlayers (uint32 spellid, bool triggered=false)
 To specify the caster as target if the spell is self-cast.
 
SpellCastResult DoCastVictim (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastAOE (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastRandomTarget (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false, bool withTank=true, int32 aura=0)
 Cast the spell on a random unit from the threat list.
 
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the top threat target, which may not be the current victim.
 
float DoGetSpellMaxRange (uint32 spellId, bool positive=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spell)
 
void DoSpellAttackToRandomTargetIfReady (uint32 spell, uint32 threatTablePosition=0, float dist=0.f, bool playerOnly=true)
 
virtual void SummonMovementInform (Creature *, uint32, uint32)
 Called when a summon reaches a waypoint or point movement finished.
 
virtual void sGossipHello (Player *)
 
virtual void sGossipSelect (Player *, uint32, uint32)
 
virtual void sGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void sQuestAccept (Player *, Quest const *)
 
virtual void sQuestSelect (Player *, Quest const *)
 
virtual void sQuestComplete (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual void sOnGameEvent (bool, uint16)
 
virtual std::string GetDebugInfo () const
 

Public Attributes

EventMap events
 
uint32 PhaseCount
 
SummonList Summons
 
ObjectGuid guidDalfors
 
ObjectGuid guidPriest [3]
 
ObjectGuid guidMason [3]
 
ObjectGuid guidHalof
 
- Public Attributes inherited from ScriptedAI
Creature * me
 

Additional Inherited Members

- Public Types inherited from ScriptedAI
enum class  Axis {
  AXIS_X ,
  AXIS_Y
}
 
- Public Types inherited from CreatureAI
enum  EvadeReason {
  EVADE_REASON_NO_HOSTILES ,
  EVADE_REASON_BOUNDARY ,
  EVADE_REASON_SEQUENCE_BREAK ,
  EVADE_REASON_NO_PATH ,
  EVADE_REASON_OTHER
}
 
- Static Public Member Functions inherited from CreatureAI
static bool IsInBounds (CreatureBoundary const &boundary, Position const *who)
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoType * AISpellInfo
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
Creature * DoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
Creature * DoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
Creature * DoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
bool _isEngaged
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ npc_blessed_bannerAI()

npc_blessed_banner::npc_blessed_bannerAI::npc_blessed_bannerAI ( Creature *  creature)
inline
1780 : ScriptedAI(creature), Summons(me)
1781 {
1782 PhaseCount = 0;
1784
1785 me->SetCombatMovement(false);
1786 }
Summons
Definition boss_razorgore.cpp:57
void SetCombatMovement(bool allowMovement)
Definition Creature.cpp:3972
void DespawnAll(Milliseconds delay=0ms)
Definition ScriptedCreature.cpp:72
Definition ScriptedCreature.h:202
Creature * me
Definition ScriptedCreature.h:292
SummonList Summons
Definition zone_icecrown.cpp:1792
uint32 PhaseCount
Definition zone_icecrown.cpp:1790

References ScriptedAI::me, PhaseCount, and Creature::SetCombatMovement().

Member Function Documentation

◆ JustDied()

void npc_blessed_banner::npc_blessed_bannerAI::JustDied ( Unit *  )
inlineoverridevirtual

Reimplemented from CreatureAI.

1819 {
1820 Summons.DespawnAll();
1822 }
void DespawnOrUnsummon(Milliseconds msTimeToDespawn=0ms, Seconds forcedRespawnTimer=0s)
Definition Creature.cpp:2221

References Creature::DespawnOrUnsummon(), and ScriptedAI::me.

◆ JustEngagedWith()

void npc_blessed_banner::npc_blessed_bannerAI::JustEngagedWith ( Unit *  )
inlineoverridevirtual

Called for reaction when initially engaged - this happens after JustEnteredCombat.

Reimplemented from CreatureAI.

1807{ }

◆ JustSummoned()

void npc_blessed_banner::npc_blessed_bannerAI::JustSummoned ( Creature *  summon)
inlineoverridevirtual

Reimplemented from CreatureAI.

1812 {
1813 Summons.Summon(summon);
1814 if (summon->GetEntry() == NPC_HALOF_THE_DEATHBRINGER)
1815 guidHalof = summon->GetGUID();
1816 }
uint32 GetEntry() const
Definition Object.h:123
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:120
ObjectGuid guidHalof
Definition zone_icecrown.cpp:1797
@ NPC_HALOF_THE_DEATHBRINGER
Definition zone_icecrown.cpp:1699

References Object::GetEntry(), Object::GetGUID(), guidHalof, and NPC_HALOF_THE_DEATHBRINGER.

◆ MoveInLineOfSight()

void npc_blessed_banner::npc_blessed_bannerAI::MoveInLineOfSight ( Unit *  )
inlineoverridevirtual

Reimplemented from CreatureAI.

1809{ }

◆ Reset()

void npc_blessed_banner::npc_blessed_bannerAI::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

1800 {
1801 me->SetRegeneratingHealth(false);
1804 events.ScheduleEvent(EVENT_SPAWN, 3s);
1805 }
events
Definition boss_sartura.cpp:43
void SetRegeneratingHealth(bool enable)
Definition Creature.h:328
SpellCastResult DoCast(uint32 spellId)
Definition UnitAI.cpp:175
Talk
Definition hyjal.cpp:82
@ BANNER_SAY
Definition zone_icecrown.cpp:1702
@ EVENT_SPAWN
Definition zone_icecrown.cpp:1712
@ SPELL_THREAT_PULSE
Definition zone_icecrown.cpp:1688

References BANNER_SAY, UnitAI::DoCast(), EVENT_SPAWN, ScriptedAI::me, Creature::SetRegeneratingHealth(), and SPELL_THREAT_PULSE.

◆ UpdateAI()

void npc_blessed_banner::npc_blessed_bannerAI::UpdateAI ( uint32  )
inlineoverridevirtual

Use to start attacking a target. Called just before JustEngagedWith()

Implements UnitAI.

1825 {
1826 events.Update(diff);
1827
1828 switch (events.ExecuteEvent())
1829 {
1830 case EVENT_SPAWN:
1831 {
1833 {
1834 guidDalfors = Dalfors->GetGUID();
1835 Dalfors->GetMotionMaster()->MovePoint(0, DalforsPos[1]);
1836 }
1838 {
1839 guidPriest[0] = Priest1->GetGUID();
1840 Priest1->GetMotionMaster()->MovePoint(0, Priest1Pos[1]);
1841 }
1843 {
1844 guidPriest[1] = Priest2->GetGUID();
1845 Priest2->GetMotionMaster()->MovePoint(0, Priest2Pos[1]);
1846 }
1848 {
1849 guidPriest[2] = Priest3->GetGUID();
1850 Priest3->GetMotionMaster()->MovePoint(0, Priest3Pos[1]);
1851 }
1852 if (Creature* Mason1 = DoSummon(NPC_ARGENT_MASON, Mason1Pos[0]))
1853 {
1854 guidMason[0] = Mason1->GetGUID();
1855 Mason1->GetMotionMaster()->MovePoint(0, Mason1Pos[1]);
1856 }
1857 if (Creature* Mason2 = DoSummon(NPC_ARGENT_MASON, Mason2Pos[0]))
1858 {
1859 guidMason[1] = Mason2->GetGUID();
1860 Mason2->GetMotionMaster()->MovePoint(0, Mason2Pos[1]);
1861 }
1862 if (Creature* Mason3 = DoSummon(NPC_ARGENT_MASON, Mason3Pos[0]))
1863 {
1864 guidMason[2] = Mason3->GetGUID();
1865 Mason3->GetMotionMaster()->MovePoint(0, Mason3Pos[1]);
1866 }
1867 events.ScheduleEvent(EVENT_INTRO_1, 15s);
1868 }
1869 break;
1870 case EVENT_INTRO_1:
1871 {
1873 Dalfors->AI()->Talk(DALFORS_SAY_PRE_1);
1874 events.ScheduleEvent(EVENT_INTRO_2, 5s);
1875 }
1876 break;
1877 case EVENT_INTRO_2:
1878 {
1880 {
1881 Dalfors->SetFacingTo(6.215f);
1882 Dalfors->AI()->Talk(DALFORS_SAY_PRE_2);
1883 }
1884 events.ScheduleEvent(EVENT_INTRO_3, 5s);
1885 }
1886 break;
1887 case EVENT_INTRO_3:
1888 {
1890 {
1891 Dalfors->GetMotionMaster()->MovePoint(0, DalforsPos[2]);
1892 Dalfors->SetHomePosition(DalforsPos[2]);
1893 }
1895 {
1896 Priest1->SetFacingTo(5.7421f);
1897 Priest1->SetHomePosition(Priest1Pos[1]);
1898 }
1900 {
1901 Priest2->SetFacingTo(5.7421f);
1902 Priest2->SetHomePosition(Priest2Pos[1]);
1903 }
1905 {
1906 Priest3->SetFacingTo(5.7421f);
1907 Priest3->SetHomePosition(Priest3Pos[1]);
1908 }
1910 {
1911 Mason1->GetMotionMaster()->MovePoint(0, Mason1Pos[2]);
1912 Mason1->SetHomePosition(Mason1Pos[2]);
1913 }
1915 {
1916 Mason2->GetMotionMaster()->MovePoint(0, Mason2Pos[2]);
1917 Mason2->SetHomePosition(Mason2Pos[2]);
1918 }
1920 {
1921 Mason3->GetMotionMaster()->MovePoint(0, Mason3Pos[2]);
1922 Mason3->SetHomePosition(Mason3Pos[2]);
1923 }
1924 events.ScheduleEvent(EVENT_START_FIGHT, 5s);
1925 events.ScheduleEvent(EVENT_MASON_ACTION, 15s);
1926 }
1927 break;
1928 case EVENT_MASON_ACTION:
1929 {
1931 {
1932 Mason1->SetFacingTo(2.8972f);
1933 Mason1->AI()->SetData(1, 1); // triggers SAI actions on npc
1934 }
1936 {
1937 Mason2->SetFacingTo(3.1241f);
1938 Mason2->AI()->SetData(1, 1); // triggers SAI actions on npc
1939 }
1941 {
1942 Mason3->SetFacingTo(3.6651f);
1943 Mason3->AI()->SetData(1, 1); // triggers SAI actions on npc
1944 }
1945 }
1946 break;
1947 case EVENT_START_FIGHT:
1948 {
1950 LK->AI()->Talk(LK_TALK_1);
1952 Dalfors->AI()->Talk(DALFORS_SAY_START);
1953 events.ScheduleEvent(EVENT_WAVE_SPAWN, 1s);
1954 }
1955 break;
1956 case EVENT_WAVE_SPAWN:
1957 {
1958 if (PhaseCount == 3)
1959 {
1961 LK->AI()->Talk(LK_TALK_2);
1962 }
1963 else if (PhaseCount == 6)
1964 {
1966 LK->AI()->Talk(LK_TALK_3);
1967 }
1969
1970 PhaseCount++;
1971
1972 if (PhaseCount < 8)
1973 events.ScheduleEvent(EVENT_WAVE_SPAWN, 10s, 20s);
1974 else
1975 events.ScheduleEvent(EVENT_HALOF, 10s, 20s);
1976 }
1977 break;
1978 case EVENT_HALOF:
1979 {
1981 LK->AI()->Talk(LK_TALK_4);
1983 }
1984 break;
1985 case EVENT_ENDED:
1986 {
1987 Summons.DespawnAll();
1989 }
1990 break;
1991 }
1992
1993 if (PhaseCount == 8)
1995 if (Halof->isDead())
1996 {
1998 Summons.DespawnEntry(NPC_HIDEOUS_PLAGUEBRINGER);
1999 Summons.DespawnEntry(NPC_REANIMATED_CAPTAIN);
2000 Summons.DespawnEntry(NPC_SCOURGE_DRUDGE);
2001 Summons.DespawnEntry(NPC_HALOF_THE_DEATHBRINGER);
2003 Dalfors->AI()->Talk(DALFORS_YELL_FINISHED);
2004 events.ScheduleEvent(EVENT_ENDED, 10s);
2005 }
2006 }
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
Creature * GetClosestCreatureWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool alive)
Definition ScriptedCreature.cpp:937
Creature * DoSummon(uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
Definition CreatureAI.cpp:628
Definition Creature.h:47
void SummonCreatureGroup(uint8 group, std::list< TempSummon * > *list=nullptr)
Definition Object.cpp:2537
Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:234
ObjectGuid guidMason[3]
Definition zone_icecrown.cpp:1796
ObjectGuid guidPriest[3]
Definition zone_icecrown.cpp:1795
ObjectGuid guidDalfors
Definition zone_icecrown.cpp:1794
Position const Priest1Pos[2]
Definition zone_icecrown.cpp:1734
Position const Mason1Pos[3]
Definition zone_icecrown.cpp:1752
Position const Mason3Pos[3]
Definition zone_icecrown.cpp:1766
Position const Priest3Pos[2]
Definition zone_icecrown.cpp:1746
Position const Priest2Pos[2]
Definition zone_icecrown.cpp:1740
@ GROUP_WAVE_CAPTAINS
Definition zone_icecrown.cpp:1723
@ DALFORS_SAY_PRE_1
Definition zone_icecrown.cpp:1703
@ EVENT_START_FIGHT
Definition zone_icecrown.cpp:1717
@ EVENT_INTRO_1
Definition zone_icecrown.cpp:1713
@ SPELL_CRUSADERS_SPIRE_VICTORY
Definition zone_icecrown.cpp:1689
@ EVENT_INTRO_2
Definition zone_icecrown.cpp:1714
@ GROUP_WAVE_PLAGUEBRINGERS
Definition zone_icecrown.cpp:1722
@ NPC_ARGENT_BATTLE_PRIEST
Definition zone_icecrown.cpp:1694
@ LK_TALK_2
Definition zone_icecrown.cpp:1708
@ NPC_REANIMATED_CAPTAIN
Definition zone_icecrown.cpp:1696
@ EVENT_HALOF
Definition zone_icecrown.cpp:1719
@ DALFORS_YELL_FINISHED
Definition zone_icecrown.cpp:1706
@ NPC_ARGENT_MASON
Definition zone_icecrown.cpp:1695
@ EVENT_WAVE_SPAWN
Definition zone_icecrown.cpp:1718
@ LK_TALK_1
Definition zone_icecrown.cpp:1707
@ EVENT_MASON_ACTION
Definition zone_icecrown.cpp:1716
@ NPC_CRUSADER_LORD_DALFORS
Definition zone_icecrown.cpp:1693
@ GROUP_WAVE_HALOF
Definition zone_icecrown.cpp:1724
@ DALFORS_SAY_PRE_2
Definition zone_icecrown.cpp:1704
@ EVENT_INTRO_3
Definition zone_icecrown.cpp:1715
@ EVENT_ENDED
Definition zone_icecrown.cpp:1720
@ NPC_SCOURGE_DRUDGE
Definition zone_icecrown.cpp:1697
@ NPC_HIDEOUS_PLAGUEBRINGER
Definition zone_icecrown.cpp:1698
@ LK_TALK_4
Definition zone_icecrown.cpp:1710
@ DALFORS_SAY_START
Definition zone_icecrown.cpp:1705
@ LK_TALK_3
Definition zone_icecrown.cpp:1709
@ NPC_LK
Definition zone_icecrown.cpp:1700
Position const Mason2Pos[3]
Definition zone_icecrown.cpp:1759
Position const DalforsPos[3]
Definition zone_icecrown.cpp:1727

References DALFORS_SAY_PRE_1, DALFORS_SAY_PRE_2, DALFORS_SAY_START, DALFORS_YELL_FINISHED, DalforsPos, Creature::DespawnOrUnsummon(), UnitAI::DoCast(), CreatureAI::DoSummon(), EVENT_ENDED, EVENT_HALOF, EVENT_INTRO_1, EVENT_INTRO_2, EVENT_INTRO_3, EVENT_MASON_ACTION, EVENT_SPAWN, EVENT_START_FIGHT, EVENT_WAVE_SPAWN, GetClosestCreatureWithEntry(), ObjectAccessor::GetCreature(), GROUP_WAVE_CAPTAINS, GROUP_WAVE_HALOF, GROUP_WAVE_PLAGUEBRINGERS, guidDalfors, guidHalof, guidMason, guidPriest, LK_TALK_1, LK_TALK_2, LK_TALK_3, LK_TALK_4, Mason1Pos, Mason2Pos, Mason3Pos, ScriptedAI::me, NPC_ARGENT_BATTLE_PRIEST, NPC_ARGENT_MASON, NPC_CRUSADER_LORD_DALFORS, NPC_HALOF_THE_DEATHBRINGER, NPC_HIDEOUS_PLAGUEBRINGER, NPC_LK, NPC_REANIMATED_CAPTAIN, NPC_SCOURGE_DRUDGE, PhaseCount, Priest1Pos, Priest2Pos, Priest3Pos, SPELL_CRUSADERS_SPIRE_VICTORY, WorldObject::SummonCreatureGroup(), and urand().

Member Data Documentation

◆ events

EventMap npc_blessed_banner::npc_blessed_bannerAI::events

◆ guidDalfors

ObjectGuid npc_blessed_banner::npc_blessed_bannerAI::guidDalfors

Referenced by UpdateAI().

◆ guidHalof

ObjectGuid npc_blessed_banner::npc_blessed_bannerAI::guidHalof

Referenced by JustSummoned(), and UpdateAI().

◆ guidMason

ObjectGuid npc_blessed_banner::npc_blessed_bannerAI::guidMason[3]

Referenced by UpdateAI().

◆ guidPriest

ObjectGuid npc_blessed_banner::npc_blessed_bannerAI::guidPriest[3]

Referenced by UpdateAI().

◆ PhaseCount

uint32 npc_blessed_banner::npc_blessed_bannerAI::PhaseCount

Referenced by npc_blessed_bannerAI(), and UpdateAI().

◆ Summons

SummonList npc_blessed_banner::npc_blessed_bannerAI::Summons

The documentation for this struct was generated from the following file: