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

Public Member Functions

 npc_madrigosa (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)
 
WorldObjectGetSummoner () const
 Returns the summoner creature/object, if the creature is a temporary summon. More...
 
 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_madrigosa()

npc_madrigosa::npc_madrigosa ( Creature creature)
inline
175 : NullCreatureAI(creature)
176 {
177 instance = creature->GetInstanceScript();
180
182 creature->SetVisible(false);
183 }
@ DATA_BRUTALLUS
Definition: sunwell_plateau.h:30
@ UNIT_DYNFLAG_DEAD
Definition: SharedDefines.h:3126
@ UNIT_STAND_STATE_DEAD
Definition: UnitDefines.h:39
Definition: PassiveAI.h:53
virtual void SetDynamicFlag(uint32 flag)
Definition: Object.h:123
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
void SetVisible(bool x)
Definition: Unit.cpp:14232
void SetStandState(uint8 state)
Definition: Unit.cpp:16726
bool IsBossDone(uint32 bossId) const
Definition: InstanceScript.h:278
InstanceScript * instance
Definition: boss_brutallus.cpp:186

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

Member Function Documentation

◆ DoAction()

void npc_madrigosa::DoAction ( int32  param)
inlineoverridevirtual

Reimplemented from UnitAI.

189 {
190 if (param == ACTION_START_EVENT)
191 {
192 me->SetDisableGravity(true);
195 me->NearTeleportTo(1570.97f, 725.51f, 79.77f, 3.82f);
196 events.ScheduleEvent(EVENT_MAD_1, 2000);
197 }
198 else if (param == ACTION_SPAWN_FELMYST)
199 events.ScheduleEvent(EVENT_SPAWN_FELMYST, 60000);
200 }
events
Definition: boss_sartura.cpp:43
@ ACTION_SPAWN_FELMYST
Definition: boss_brutallus.cpp:63
@ ACTION_START_EVENT
Definition: boss_brutallus.cpp:62
@ EVENT_MAD_1
Definition: boss_brutallus.cpp:131
@ EVENT_SPAWN_FELMYST
Definition: boss_brutallus.cpp:153
@ UNIT_STAND_STATE_STAND
Definition: UnitDefines.h:32
Creature *const me
Definition: CreatureAI.h:72
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:3205
virtual void RemoveDynamicFlag(uint32 flag)
Definition: Object.h:124
void NearTeleportTo(Position &pos, bool casting=false, bool vehicleTeleport=false, bool withPet=false, bool removeTransport=false)
Definition: Unit.cpp:19979

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::UpdateAI ( uint32  )
inlineoverridevirtual

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

Reimplemented from NullCreatureAI.

203 {
204 events.Update(diff);
205 switch (events.ExecuteEvent())
206 {
207 case EVENT_MAD_1:
208 me->SetVisible(true);
209 if (Creature* brutallus = instance->GetCreature(DATA_BRUTALLUS))
210 {
211 me->SetTarget(brutallus->GetGUID());
212 brutallus->SetReactState(REACT_PASSIVE);
213 brutallus->setActive(true);
214 }
215 me->GetMotionMaster()->MovePoint(1, 1477.94f, 643.22f, 21.21f);
217 events.ScheduleEvent(EVENT_MAD_2, 6000);
218 break;
219 case EVENT_MAD_2:
222 events.ScheduleEvent(EVENT_MAD_2_1, 1000);
223 break;
224 case EVENT_MAD_2_1:
226 me->SetDisableGravity(false);
228 events.ScheduleEvent(EVENT_MAD_3, 7000);
229 break;
230 case EVENT_MAD_3:
232 events.ScheduleEvent(EVENT_MAD_4, 7000);
233 break;
234 case EVENT_MAD_4:
235 if (Creature* brutallus = instance->GetCreature(DATA_BRUTALLUS))
236 brutallus->AI()->Talk(YELL_INTRO);
237 events.ScheduleEvent(EVENT_MAD_5, 5000);
238 break;
239 case EVENT_MAD_5:
240 if (Creature* brutallus = instance->GetCreature(DATA_BRUTALLUS))
241 {
242 brutallus->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_ATTACK1H);
244 }
245 events.ScheduleEvent(EVENT_MAD_6, 10000);
246 break;
247 case EVENT_MAD_6:
248 if (Creature* brutallus = instance->GetCreature(DATA_BRUTALLUS))
249 {
250 brutallus->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_NONE);
252 }
254 me->SetDisableGravity(true);
255 events.ScheduleEvent(EVENT_MAD_7, 4000);
256 break;
257 case EVENT_MAD_7:
260 events.ScheduleEvent(EVENT_MAD_8, 3000);
261 events.ScheduleEvent(EVENT_MAD_8, 5000);
262 events.ScheduleEvent(EVENT_MAD_8, 6500);
263 events.ScheduleEvent(EVENT_MAD_8, 7500);
264 events.ScheduleEvent(EVENT_MAD_8, 8500);
265 events.ScheduleEvent(EVENT_MAD_8, 9500);
266 events.ScheduleEvent(EVENT_MAD_9, 11000);
267 events.ScheduleEvent(EVENT_MAD_8, 12000);
268 events.ScheduleEvent(EVENT_MAD_8, 14000);
269 break;
270 case EVENT_MAD_8:
271 if (Creature* brutallus = instance->GetCreature(DATA_BRUTALLUS))
272 me->CastSpell(brutallus, SPELL_MADRIGOSA_FROSTBOLT, false);
273 break;
274 case EVENT_MAD_9:
275 if (Creature* brutallus = instance->GetCreature(DATA_BRUTALLUS))
276 {
277 brutallus->CastSpell(brutallus, SPELL_BRUTALLUS_FLAME_RING, true);
278 brutallus->RemoveAllAuras();
279 brutallus->CastSpell(brutallus, SPELL_BRUTALLUS_FEL_FIREBALL, false);
280 brutallus->AI()->Talk(YELL_INTRO_BREAK_ICE);
281 }
282 events.ScheduleEvent(EVENT_MAD_11, 6000);
283 break;
284 //case EVENT_MAD_10:
285 case EVENT_MAD_11:
286 me->SetDisableGravity(false);
288 events.ScheduleEvent(EVENT_MAD_13, 2500);
289 break;
290 case EVENT_MAD_13:
294 events.ScheduleEvent(EVENT_MAD_14, 2000);
295 break;
296 case EVENT_MAD_14:
297 if (Creature* brutallus = instance->GetCreature(DATA_BRUTALLUS))
298 {
299 brutallus->SetDisableGravity(true);
300 brutallus->GetMotionMaster()->MovePoint(0, brutallus->GetPositionX(), brutallus->GetPositionY() - 30.0f, brutallus->GetPositionZ() + 15.0f, false, true);
301 }
302 events.ScheduleEvent(EVENT_MAD_15, 10000);
303 break;
304 case EVENT_MAD_15:
305 if (Creature* brutallus = instance->GetCreature(DATA_BRUTALLUS))
306 {
307 brutallus->RemoveAllAuras();
308 brutallus->SetDisableGravity(false);
309 brutallus->GetMotionMaster()->MoveFall();
310 brutallus->AI()->Talk(YELL_INTRO_CHARGE);
311 }
312 events.ScheduleEvent(EVENT_MAD_16, 1400);
313 break;
314 case EVENT_MAD_16:
315 if (Creature* brutallus = instance->GetCreature(DATA_BRUTALLUS))
316 brutallus->CastSpell(me, SPELL_BRUTALLUS_CHARGE, true);
317 events.ScheduleEvent(EVENT_MAD_17, 1200);
318 break;
319 case EVENT_MAD_17:
320 if (Creature* brutallus = instance->GetCreature(DATA_BRUTALLUS))
321 brutallus->HandleEmoteCommand(EMOTE_ONESHOT_ATTACK1H);
322 events.ScheduleEvent(EVENT_MAD_18, 500);
323 break;
324 case EVENT_MAD_18:
328 events.ScheduleEvent(EVENT_MAD_19, 6000);
329 break;
330 case EVENT_MAD_19:
331 if (Creature* brutallus = instance->GetCreature(DATA_BRUTALLUS))
332 brutallus->AI()->Talk(YELL_INTRO_KILL_MADRIGOSA);
333 events.ScheduleEvent(EVENT_MAD_20, 7000);
334 break;
335 case EVENT_MAD_20:
338 if (Creature* brutallus = instance->GetCreature(DATA_BRUTALLUS))
339 {
340 brutallus->AI()->Talk(YELL_INTRO_TAUNT);
341 brutallus->CastSpell(brutallus, SPELL_BRUTALLUS_BREAK_ICE, false);
342 }
343 events.ScheduleEvent(EVENT_MAD_21, 4000);
344 break;
345 case EVENT_MAD_21:
346 if (Creature* brutallus = instance->GetCreature(DATA_BRUTALLUS))
347 {
348 brutallus->SetReactState(REACT_AGGRESSIVE);
349 brutallus->SetHealth(brutallus->GetMaxHealth());
350 brutallus->AI()->EnterEvadeMode();
351 brutallus->setActive(false);
352 }
353 break;
356 if (Creature* felmyst = instance->GetCreature(DATA_FELMYST))
357 felmyst->AI()->DoAction(ACTION_START_EVENT);
358 break;
359 }
360 }
Talk
Definition: hyjal.cpp:82
@ DATA_FELMYST
Definition: sunwell_plateau.h:31
@ 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:137
@ EVENT_MAD_2
Definition: boss_brutallus.cpp:132
@ EVENT_MAD_21
Definition: boss_brutallus.cpp:152
@ EVENT_MAD_16
Definition: boss_brutallus.cpp:147
@ EVENT_MAD_5
Definition: boss_brutallus.cpp:136
@ EVENT_MAD_8
Definition: boss_brutallus.cpp:139
@ SPELL_BRUTALLUS_FEL_FIREBALL
Definition: boss_brutallus.cpp:168
@ SPELL_BRUTALLUS_CHARGE
Definition: boss_brutallus.cpp:167
@ SAY_MAD_3
Definition: boss_brutallus.cpp:157
@ SPELL_BRUTALLUS_BREAK_ICE
Definition: boss_brutallus.cpp:170
@ SAY_MAD_1
Definition: boss_brutallus.cpp:155
@ SPELL_MADRIGOSA_FROST_BREATH
Definition: boss_brutallus.cpp:162
@ EVENT_MAD_9
Definition: boss_brutallus.cpp:140
@ SPELL_MADRIGOSA_FREEZE
Definition: boss_brutallus.cpp:161
@ EVENT_MAD_3
Definition: boss_brutallus.cpp:134
@ SPELL_MADRIGOSA_ENCAPSULATE
Definition: boss_brutallus.cpp:165
@ SPELL_BRUTALLUS_FLAME_RING
Definition: boss_brutallus.cpp:169
@ EVENT_MAD_13
Definition: boss_brutallus.cpp:144
@ SAY_MAD_4
Definition: boss_brutallus.cpp:158
@ SAY_MAD_2
Definition: boss_brutallus.cpp:156
@ SAY_MAD_5
Definition: boss_brutallus.cpp:159
@ EVENT_MAD_17
Definition: boss_brutallus.cpp:148
@ EVENT_MAD_19
Definition: boss_brutallus.cpp:150
@ EVENT_MAD_14
Definition: boss_brutallus.cpp:145
@ EVENT_MAD_7
Definition: boss_brutallus.cpp:138
@ EVENT_MAD_11
Definition: boss_brutallus.cpp:142
@ EVENT_MAD_4
Definition: boss_brutallus.cpp:135
@ SPELL_MADRIGOSA_FROST_BLAST
Definition: boss_brutallus.cpp:163
@ EVENT_MAD_2_1
Definition: boss_brutallus.cpp:133
@ EVENT_MAD_20
Definition: boss_brutallus.cpp:151
@ EVENT_MAD_15
Definition: boss_brutallus.cpp:146
@ EVENT_MAD_18
Definition: boss_brutallus.cpp:149
@ SPELL_MADRIGOSA_FROSTBOLT
Definition: boss_brutallus.cpp:164
@ 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
@ UNIT_NPC_EMOTESTATE
Definition: UpdateFields.h:140
@ 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
Definition: Creature.h:43
void SetTarget(ObjectGuid guid=ObjectGuid::Empty) override
Definition: Creature.cpp:3545
void DespawnOrUnsummon(Milliseconds msTimeToDespawn, Seconds forcedRespawnTimer)
Definition: Creature.cpp:2178
void SetFaction(uint32 faction)
Definition: Unit.cpp:10056
MotionMaster * GetMotionMaster()
Definition: Unit.h:1620
void AddUnitState(uint32 f)
Definition: Unit.h:700
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:1167
void SetUInt32Value(uint16 index, uint32 value)
Definition: Unit.cpp:21316
void RemoveAllAuras()
Definition: Unit.cpp:5319
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:713
void HandleEmoteCommand(uint32 emoteId)
Definition: Unit.cpp:2000
Creature * GetCreature(uint32 type)
Definition: InstanceScript.cpp:103
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition: MotionMaster.h:213

References ACTION_START_EVENT, Unit::AddUnitState(), Unit::CastSpell(), DATA_BRUTALLUS, DATA_FELMYST, 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, InstanceScript::GetCreature(), Unit::GetMotionMaster(), Unit::HandleEmoteCommand(), instance, CreatureAI::me, MotionMaster::MovePoint(), 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::events

◆ instance

InstanceScript* npc_madrigosa::instance

Referenced by npc_madrigosa(), and UpdateAI().