AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
npc_madrigosa::npc_madrigosaAI Struct Reference
Inheritance diagram for npc_madrigosa::npc_madrigosaAI:
NullCreatureAI CreatureAI UnitAI

Public Member Functions

 npc_madrigosaAI (Creature *creature)
 
void DoAction (int32 param) override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
- Public Member Functions inherited from NullCreatureAI
 NullCreatureAI (Creature *c)
 
void MoveInLineOfSight (Unit *) override
 
void AttackStart (Unit *) override
 
void UpdateAI (uint32) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
void EnterEvadeMode (EvadeReason) override
 
void OnCharmed (bool) override
 Called when unit is charmed. More...
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0s)
 Causes the creature to talk/say the text assigned to their entry in the creature_text database table. More...
 
void Talk (uint8 id, Milliseconds delay)
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At ================================= More...
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
virtual void JustEngagedWith (Unit *)
 Called for reaction when initially engaged. More...
 
virtual void JustDied (Unit *)
 
virtual void KilledUnit (Unit *)
 
virtual void JustSummoned (Creature *)
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureDespawnAll ()
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual void SpellHitTarget (Unit *, SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
virtual void PathEndReached (uint32)
 
void OnCharmed (bool apply) override
 Called when unit is charmed. More...
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *)
 
virtual void OwnerAttacked (Unit *)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ================== More...
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields ======================================= More...
 
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 ()
 
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)
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void AttackStart (Unit *)
 
virtual void UpdateAI (uint32)=0
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void OnCharmed (bool apply)=0
 Called when unit is charmed. More...
 
virtual void DoAction (int32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (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: More...
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
virtual void JustEnteredCombat (Unit *)
 Called when the unit enters combat. More...
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat. More...
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 Called at any Damage to any victim (before damage apply) More...
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage from any attacker (before damage apply) More...
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal. More...
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates. More...
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals. More...
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations. More...
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT) More...
 
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. More...
 
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)
 Cast the spell on a random unit from the threat list. More...
 
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. More...
 
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. More...
 
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
 
InstanceScriptinstance
 

Additional Inherited Members

- 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 NullCreatureAI
static int32 Permissible (Creature const *creature)
 
- 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 AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
CreatureDoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ npc_madrigosaAI()

npc_madrigosa::npc_madrigosaAI::npc_madrigosaAI ( Creature creature)
inline
220 : NullCreatureAI(creature)
221 {
222 instance = creature->GetInstanceScript();
224 creature->SetVisible(appear);
227 }
@ DONE
Definition: InstanceScript.h:60
@ UNIT_STAND_STATE_DEAD
Definition: UnitDefines.h:39
@ DATA_BRUTALLUS
Definition: sunwell_plateau.h:31
@ DATA_MADRIGOSA
Definition: sunwell_plateau.h:30
@ UNIT_DYNFLAG_DEAD
Definition: SharedDefines.h:3126
Definition: PassiveAI.h:53
virtual void SetDynamicFlag(uint32 flag)
Definition: Object.h:120
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
void SetVisible(bool x)
Definition: Unit.cpp:14189
void SetStandState(uint8 state)
Definition: Unit.cpp:16682
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:235
InstanceScript * instance
Definition: boss_brutallus.cpp:230

References DATA_BRUTALLUS, DATA_MADRIGOSA, DONE, InstanceScript::GetBossState(), WorldObject::GetInstanceScript(), instance, Object::SetDynamicFlag(), Unit::SetStandState(), Unit::SetVisible(), UNIT_DYNFLAG_DEAD, and UNIT_STAND_STATE_DEAD.

Member Function Documentation

◆ DoAction()

void npc_madrigosa::npc_madrigosaAI::DoAction ( int32  param)
inlineoverridevirtual

Reimplemented from UnitAI.

233 {
234 if (param == ACTION_START_EVENT)
235 {
236 me->SetDisableGravity(true);
239 me->NearTeleportTo(1570.97f, 725.51f, 79.77f, 3.82f);
240 events.ScheduleEvent(EVENT_MAD_1, 2000);
241 }
242 else if (param == ACTION_SPAWN_FELMYST)
243 events.ScheduleEvent(EVENT_SPAWN_FELMYST, 60000);
244 }
@ UNIT_STAND_STATE_STAND
Definition: UnitDefines.h:32
@ ACTION_SPAWN_FELMYST
Definition: boss_brutallus.cpp:63
@ ACTION_START_EVENT
Definition: boss_brutallus.cpp:62
@ EVENT_MAD_1
Definition: boss_brutallus.cpp:171
@ EVENT_SPAWN_FELMYST
Definition: boss_brutallus.cpp:193
events
Definition: boss_sartura.cpp:43
Creature *const me
Definition: CreatureAI.h:73
bool SetDisableGravity(bool disable, bool packetOnly=false, bool updateAnimationTier=true) override
Enable or disable the creature's fly mode by adding or removing: MOVEMENTFLAG_FLYING....
Definition: Creature.cpp:3192
virtual void RemoveDynamicFlag(uint32 flag)
Definition: Object.h:121
void NearTeleportTo(Position &pos, bool casting=false, bool vehicleTeleport=false, bool withPet=false, bool removeTransport=false)
Definition: Unit.cpp:19937

References ACTION_SPAWN_FELMYST, ACTION_START_EVENT, EVENT_MAD_1, EVENT_SPAWN_FELMYST, CreatureAI::me, Unit::NearTeleportTo(), Object::RemoveDynamicFlag(), Creature::SetDisableGravity(), Unit::SetStandState(), UNIT_DYNFLAG_DEAD, and UNIT_STAND_STATE_STAND.

◆ UpdateAI()

void npc_madrigosa::npc_madrigosaAI::UpdateAI ( uint32  )
inlineoverridevirtual

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

Reimplemented from NullCreatureAI.

247 {
248 events.Update(diff);
249 switch (events.ExecuteEvent())
250 {
251 case EVENT_MAD_1:
252 me->SetVisible(true);
254 {
255 me->SetTarget(brutallus->GetGUID());
256 brutallus->SetReactState(REACT_PASSIVE);
257 brutallus->setActive(true);
258 }
259 me->GetMotionMaster()->MovePoint(1, 1477.94f, 643.22f, 21.21f);
261 events.ScheduleEvent(EVENT_MAD_2, 6000);
262 break;
263 case EVENT_MAD_2:
266 events.ScheduleEvent(EVENT_MAD_2_1, 1000);
267 break;
268 case EVENT_MAD_2_1:
270 me->SetDisableGravity(false);
272 events.ScheduleEvent(EVENT_MAD_3, 7000);
273 break;
274 case EVENT_MAD_3:
276 events.ScheduleEvent(EVENT_MAD_4, 7000);
277 break;
278 case EVENT_MAD_4:
280 brutallus->AI()->Talk(YELL_INTRO);
281 events.ScheduleEvent(EVENT_MAD_5, 5000);
282 break;
283 case EVENT_MAD_5:
285 {
286 brutallus->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_ATTACK1H);
288 }
289 events.ScheduleEvent(EVENT_MAD_6, 10000);
290 break;
291 case EVENT_MAD_6:
293 {
294 brutallus->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_NONE);
296 }
298 me->SetDisableGravity(true);
299 events.ScheduleEvent(EVENT_MAD_7, 4000);
300 break;
301 case EVENT_MAD_7:
304 events.ScheduleEvent(EVENT_MAD_8, 3000);
305 events.ScheduleEvent(EVENT_MAD_8, 5000);
306 events.ScheduleEvent(EVENT_MAD_8, 6500);
307 events.ScheduleEvent(EVENT_MAD_8, 7500);
308 events.ScheduleEvent(EVENT_MAD_8, 8500);
309 events.ScheduleEvent(EVENT_MAD_8, 9500);
310 events.ScheduleEvent(EVENT_MAD_9, 11000);
311 events.ScheduleEvent(EVENT_MAD_8, 12000);
312 events.ScheduleEvent(EVENT_MAD_8, 14000);
313 break;
314 case EVENT_MAD_8:
316 me->CastSpell(brutallus, SPELL_MADRIGOSA_FROSTBOLT, false);
317 break;
318 case EVENT_MAD_9:
320 {
321 brutallus->CastSpell(brutallus, SPELL_BRUTALLUS_FLAME_RING, true);
322 brutallus->RemoveAllAuras();
323 brutallus->CastSpell(brutallus, SPELL_BRUTALLUS_FEL_FIREBALL, false);
324 brutallus->AI()->Talk(YELL_INTRO_BREAK_ICE);
325 }
326 events.ScheduleEvent(EVENT_MAD_11, 6000);
327 break;
328 //case EVENT_MAD_10:
329 case EVENT_MAD_11:
330 me->SetDisableGravity(false);
332 events.ScheduleEvent(EVENT_MAD_13, 2500);
333 break;
334 case EVENT_MAD_13:
338 events.ScheduleEvent(EVENT_MAD_14, 2000);
339 break;
340 case EVENT_MAD_14:
342 {
343 brutallus->SetDisableGravity(true);
344 brutallus->GetMotionMaster()->MovePoint(0, brutallus->GetPositionX(), brutallus->GetPositionY() - 30.0f, brutallus->GetPositionZ() + 15.0f, false, true);
345 }
346 events.ScheduleEvent(EVENT_MAD_15, 10000);
347 break;
348 case EVENT_MAD_15:
350 {
351 brutallus->RemoveAllAuras();
352 brutallus->SetDisableGravity(false);
353 brutallus->GetMotionMaster()->MoveFall();
354 brutallus->AI()->Talk(YELL_INTRO_CHARGE);
355 }
356 events.ScheduleEvent(EVENT_MAD_16, 1400);
357 break;
358 case EVENT_MAD_16:
360 brutallus->CastSpell(me, SPELL_BRUTALLUS_CHARGE, true);
361 events.ScheduleEvent(EVENT_MAD_17, 1200);
362 break;
363 case EVENT_MAD_17:
365 brutallus->HandleEmoteCommand(EMOTE_ONESHOT_ATTACK1H);
366 events.ScheduleEvent(EVENT_MAD_18, 500);
367 break;
368 case EVENT_MAD_18:
372 events.ScheduleEvent(EVENT_MAD_19, 6000);
373 break;
374 case EVENT_MAD_19:
376 brutallus->AI()->Talk(YELL_INTRO_KILL_MADRIGOSA);
377 events.ScheduleEvent(EVENT_MAD_20, 7000);
378 break;
379 case EVENT_MAD_20:
383 {
384 brutallus->AI()->Talk(YELL_INTRO_TAUNT);
385 brutallus->CastSpell(brutallus, SPELL_BRUTALLUS_BREAK_ICE, false);
386 }
387 events.ScheduleEvent(EVENT_MAD_21, 4000);
388 break;
389 case EVENT_MAD_21:
391 {
392 brutallus->SetReactState(REACT_AGGRESSIVE);
393 brutallus->SetHealth(brutallus->GetMaxHealth());
394 brutallus->AI()->EnterEvadeMode();
395 brutallus->setActive(false);
396 }
397 break;
401 felmyst->AI()->DoAction(ACTION_START_EVENT);
402 break;
403 }
404 }
@ REACT_PASSIVE
Definition: Unit.h:548
@ REACT_AGGRESSIVE
Definition: Unit.h:550
@ UNIT_STATE_NO_ENVIRONMENT_UPD
Definition: UnitDefines.h:177
@ UNIT_FLAG_NON_ATTACKABLE
Definition: UnitDefines.h:230
@ UNIT_NPC_EMOTESTATE
Definition: UpdateFields.h:140
@ NPC_BRUTALLUS
Definition: sunwell_plateau.h:53
@ NPC_FELMYST
Definition: sunwell_plateau.h:55
@ YELL_INTRO
Definition: boss_brutallus.cpp:31
@ YELL_INTRO_BREAK_ICE
Definition: boss_brutallus.cpp:32
@ YELL_INTRO_KILL_MADRIGOSA
Definition: boss_brutallus.cpp:34
@ YELL_INTRO_TAUNT
Definition: boss_brutallus.cpp:35
@ YELL_INTRO_CHARGE
Definition: boss_brutallus.cpp:33
@ EVENT_MAD_6
Definition: boss_brutallus.cpp:177
@ EVENT_MAD_2
Definition: boss_brutallus.cpp:172
@ EVENT_MAD_21
Definition: boss_brutallus.cpp:192
@ EVENT_MAD_16
Definition: boss_brutallus.cpp:187
@ EVENT_MAD_5
Definition: boss_brutallus.cpp:176
@ EVENT_MAD_8
Definition: boss_brutallus.cpp:179
@ SPELL_BRUTALLUS_FEL_FIREBALL
Definition: boss_brutallus.cpp:208
@ SPELL_BRUTALLUS_CHARGE
Definition: boss_brutallus.cpp:207
@ SAY_MAD_3
Definition: boss_brutallus.cpp:197
@ SPELL_BRUTALLUS_BREAK_ICE
Definition: boss_brutallus.cpp:210
@ SAY_MAD_1
Definition: boss_brutallus.cpp:195
@ SPELL_MADRIGOSA_FROST_BREATH
Definition: boss_brutallus.cpp:202
@ EVENT_MAD_9
Definition: boss_brutallus.cpp:180
@ SPELL_MADRIGOSA_FREEZE
Definition: boss_brutallus.cpp:201
@ EVENT_MAD_3
Definition: boss_brutallus.cpp:174
@ SPELL_MADRIGOSA_ENCAPSULATE
Definition: boss_brutallus.cpp:205
@ SPELL_BRUTALLUS_FLAME_RING
Definition: boss_brutallus.cpp:209
@ EVENT_MAD_13
Definition: boss_brutallus.cpp:184
@ SAY_MAD_4
Definition: boss_brutallus.cpp:198
@ SAY_MAD_2
Definition: boss_brutallus.cpp:196
@ SAY_MAD_5
Definition: boss_brutallus.cpp:199
@ EVENT_MAD_17
Definition: boss_brutallus.cpp:188
@ EVENT_MAD_19
Definition: boss_brutallus.cpp:190
@ EVENT_MAD_14
Definition: boss_brutallus.cpp:185
@ EVENT_MAD_7
Definition: boss_brutallus.cpp:178
@ EVENT_MAD_11
Definition: boss_brutallus.cpp:182
@ EVENT_MAD_4
Definition: boss_brutallus.cpp:175
@ SPELL_MADRIGOSA_FROST_BLAST
Definition: boss_brutallus.cpp:203
@ EVENT_MAD_2_1
Definition: boss_brutallus.cpp:173
@ EVENT_MAD_20
Definition: boss_brutallus.cpp:191
@ EVENT_MAD_15
Definition: boss_brutallus.cpp:186
@ EVENT_MAD_18
Definition: boss_brutallus.cpp:189
@ SPELL_MADRIGOSA_FROSTBOLT
Definition: boss_brutallus.cpp:204
Talk
Definition: hyjal.cpp:82
@ EMOTE_ONESHOT_ATTACK1H
Definition: SharedDefines.h:1926
@ EMOTE_ONESHOT_LAND
Definition: SharedDefines.h:1964
@ EMOTE_ONESHOT_NONE
Definition: SharedDefines.h:1894
@ EMOTE_ONESHOT_LIFTOFF
Definition: SharedDefines.h:1960
@ FACTION_FRIENDLY
Definition: SharedDefines.h:201
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:213
Definition: Creature.h:46
void SetTarget(ObjectGuid guid=ObjectGuid::Empty) override
Definition: Creature.cpp:3532
void DespawnOrUnsummon(Milliseconds msTimeToDespawn, Seconds forcedRespawnTimer)
Definition: Creature.cpp:2173
void SetFaction(uint32 faction)
Definition: Unit.cpp:10018
MotionMaster * GetMotionMaster()
Definition: Unit.h:1601
void AddUnitState(uint32 f)
Definition: Unit.h:672
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1168
void SetUInt32Value(uint16 index, uint32 value)
Definition: Unit.cpp:21256
void RemoveAllAuras()
Definition: Unit.cpp:5290
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:683
void HandleEmoteCommand(uint32 emoteId)
Definition: Unit.cpp:1984
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:95
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition: MotionMaster.h:211

References ACTION_START_EVENT, Unit::AddUnitState(), Unit::CastSpell(), Creature::DespawnOrUnsummon(), EMOTE_ONESHOT_ATTACK1H, EMOTE_ONESHOT_LAND, EMOTE_ONESHOT_LIFTOFF, EMOTE_ONESHOT_NONE, EVENT_MAD_1, EVENT_MAD_11, EVENT_MAD_13, EVENT_MAD_14, EVENT_MAD_15, EVENT_MAD_16, EVENT_MAD_17, EVENT_MAD_18, EVENT_MAD_19, EVENT_MAD_2, EVENT_MAD_20, EVENT_MAD_21, EVENT_MAD_2_1, EVENT_MAD_3, EVENT_MAD_4, EVENT_MAD_5, EVENT_MAD_6, EVENT_MAD_7, EVENT_MAD_8, EVENT_MAD_9, EVENT_SPAWN_FELMYST, FACTION_FRIENDLY, ObjectAccessor::GetCreature(), InstanceScript::GetGuidData(), Unit::GetMotionMaster(), Unit::HandleEmoteCommand(), instance, CreatureAI::me, MotionMaster::MovePoint(), NPC_BRUTALLUS, NPC_FELMYST, REACT_AGGRESSIVE, REACT_PASSIVE, Unit::RemoveAllAuras(), SAY_MAD_1, SAY_MAD_2, SAY_MAD_3, SAY_MAD_4, SAY_MAD_5, Creature::SetDisableGravity(), Object::SetDynamicFlag(), Unit::SetFaction(), Unit::SetStandState(), Creature::SetTarget(), Unit::SetUInt32Value(), Unit::SetUnitFlag(), Unit::SetVisible(), SPELL_BRUTALLUS_BREAK_ICE, SPELL_BRUTALLUS_CHARGE, SPELL_BRUTALLUS_FEL_FIREBALL, SPELL_BRUTALLUS_FLAME_RING, SPELL_MADRIGOSA_ENCAPSULATE, SPELL_MADRIGOSA_FREEZE, SPELL_MADRIGOSA_FROST_BLAST, SPELL_MADRIGOSA_FROST_BREATH, SPELL_MADRIGOSA_FROSTBOLT, UNIT_DYNFLAG_DEAD, UNIT_FLAG_NON_ATTACKABLE, UNIT_NPC_EMOTESTATE, UNIT_STAND_STATE_DEAD, UNIT_STATE_NO_ENVIRONMENT_UPD, YELL_INTRO, YELL_INTRO_BREAK_ICE, YELL_INTRO_CHARGE, YELL_INTRO_KILL_MADRIGOSA, and YELL_INTRO_TAUNT.

Member Data Documentation

◆ events

EventMap npc_madrigosa::npc_madrigosaAI::events

◆ instance

InstanceScript* npc_madrigosa::npc_madrigosaAI::instance

Referenced by npc_madrigosaAI(), and UpdateAI().