TrinityCore
Loading...
Searching...
No Matches
boss_brutallus.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18/*
19 * Intro requires additional re-checks, something may be missing or implemented wrongly.
20 Visually it doesn't look good because of several core bugs \ wrong implementation
21 * Everything related to Burn requires additional re-checks since something may be implemented wrongly
22 * Effect of SPELL_CLEAR_RETURN_STATE is NYI
23 * SPELL_TAUNT_HIT_CHANCE has no effect currently
24 */
25
26#include "ScriptMgr.h"
27#include "GameObject.h"
28#include "InstanceScript.h"
29#include "MotionMaster.h"
30#include "Player.h"
31#include "ScriptedCreature.h"
32#include "SpellAuraEffects.h"
33#include "SpellInfo.h"
34#include "SpellScript.h"
35#include "sunwell_plateau.h"
36
57
59{
60 // Passive
63
64 // Combat
66 SPELL_STOMP = 45185,
69
70 // Intro - Madrigosa
71 SPELL_FREEZE = 46609,
78
79 // Intro - Brutallus
84 SPELL_CHARGE = 44884,
88
89 // Intro - Shared
91
92 // Outro - Brutallus
94
95 // Outro - Madrigosa
98
99 // Scripts
105
146
151
161
162Position const MadrigosaSpawnPos = { 1470.3624f, 738.1818f, 64.166770f, 4.625122547149658203f };
163Position const MadrigosaMoveLandPos1 = { 1463.8200f, 661.2120f, 19.797100f, 0.0f };
164Position const MadrigosaMoveLiftoffPos = { 1464.6943f, 652.1426f, 39.277885f, 0.0f };
165Position const MadrigosaMoveLandPos2 = { 1464.6943f, 652.1426f, 20.819180f, 0.0f };
166Position const MadrigosaMoveLandPos3 = { 1464.6943f, 652.1426f, 19.819180f, 0.0f };
167Position const BrutallusMoveOffsetPos = { 1464.4820f, 583.9001f, 44.392480f, 0.0f };
168Position const BrutallusMoveCombatPos = { 1478.7400f, 621.8980f, 22.654501f, 0.0f };
169
170// 24882 - Brutallus
171struct boss_brutallus : public BossAI
172{
173 boss_brutallus(Creature* creature) : BossAI(creature, DATA_BRUTALLUS) { }
174
175 void Reset() override
176 {
177 _Reset();
178
182 }
183
184 void JustEngagedWith(Unit* who) override
185 {
186 if (who->GetEntry() == NPC_MADRIGOSA)
187 return;
188
190
192
197 }
198
199 void OnSpellCast(SpellInfo const* spell) override
200 {
201 switch (spell->Id)
202 {
203 case SPELL_STOMP:
204 Talk(SAY_LOVE);
205 break;
206 case SPELL_BERSERK:
208 break;
209 default:
210 break;
211 }
212 }
213
214 void KilledUnit(Unit* /*victim*/) override
215 {
216 Talk(SAY_SLAY);
217 }
218
219 void JustDied(Unit* /*killer*/) override
220 {
221 _JustDied();
222
224
226
227 if (Creature* madrigosa = instance->GetCreature(DATA_MADRIGOSA))
228 madrigosa->AI()->DoAction(ACTION_START_OUTRO);
229 }
230
231 void UpdateAI(uint32 diff) override
232 {
233 if (!UpdateVictim())
234 return;
235
236 events.Update(diff);
237
239 return;
240
241 while (uint32 eventId = events.ExecuteEvent())
242 {
243 switch (eventId)
244 {
247 events.Repeat(12s);
248 break;
249 case EVENT_STOMP:
251 events.Repeat(32s);
252 break;
253 case EVENT_BURN:
254 if (Unit* target = SelectTarget(SelectTargetMethod::Random, 1, 100.0f, true, true, -SPELL_BURN_DAMAGE))
255 DoCast(target, SPELL_BURN_PRIMER);
256 events.Repeat(20s);
257 break;
258 case EVENT_BERSERK:
260 break;
261 default:
262 break;
263 }
264
266 return;
267 }
268
270 }
271};
272
273// 24895 - Madrigosa
275{
276 npc_madrigosa(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript()) { }
277
278 void JustAppeared() override
279 {
281 }
282
283 void MovementInform(uint32 type, uint32 id) override
284 {
285 if (type == POINT_MOTION_TYPE)
286 {
287 switch (id)
288 {
291 break;
294 break;
297 break;
300 break;
301 default:
302 break;
303 }
304 }
305 }
306
307 void DoAction(int32 action) override
308 {
309 if (action == ACTION_START_OUTRO)
311 }
312
313 void DamageTaken(Unit* /*attacker*/, uint32& damage, DamageEffectType /*damageType*/, SpellInfo const* /*spellInfo = nullptr*/) override
314 {
315 if (damage >= me->GetHealth())
316 damage = me->GetHealth() - 1;
317 }
318
320 void EnterEvadeMode(EvadeReason /*why*/) override { }
321
322 void UpdateAI(uint32 diff) override
323 {
324 _events.Update(diff);
325
326 while (uint32 eventId = _events.ExecuteEvent())
327 {
328 switch (eventId)
329 {
330 case EVENT_INTRO_1:
332 break;
333 case EVENT_INTRO_2:
336 me->SetFacingToObject(trigger);
339 break;
340 case EVENT_INTRO_3:
341 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
342 me->SetFacingToObject(brutallus);
344 me->SetDisableGravity(false);
345 me->SetHover(false);
348 break;
349 case EVENT_INTRO_4:
350 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
351 brutallus->AI()->Talk(SAY_INTRO);
353 break;
354 case EVENT_INTRO_5:
355 me->SetImmuneToNPC(false);
356 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
357 AttackStart(brutallus);
359 break;
360 case EVENT_INTRO_6:
363 break;
364 case EVENT_INTRO_7:
368 break;
369 case EVENT_INTRO_8:
370 {
371 me->SetDisableGravity(true);
372 me->SetHover(true);
374 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
375 {
376 brutallus->SetDisableGravity(true);
377 brutallus->SetControlled(true, UNIT_STATE_ROOT);
378 }
379 break;
380 }
381 case EVENT_INTRO_9:
382 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
383 me->SetFacingToObject(brutallus);
386 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
387 brutallus->SetReactState(REACT_PASSIVE);
388 _events.ScheduleEvent(EVENT_FROSTBOLT, RAND(1200ms, 2400ms, 3600ms));
390 break;
391 case EVENT_INTRO_10:
392 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
393 brutallus->CastSpell(brutallus, SPELL_FLAME_RING_1);
395 break;
396 case EVENT_INTRO_11:
397 {
398 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
399 {
400 brutallus->AI()->Talk(SAY_INTRO_BREAK_ICE);
402 brutallus->RemoveAurasDueToSpell(SPELL_FROST_BLAST);
403 brutallus->CastSpell(brutallus, SPELL_CLEAR_ALL_DEBUFFS);
404 brutallus->CastSpell(brutallus, SPELL_FLAME_RING_2);
405 brutallus->SetFacingTo(1.383456826210021972f);
406 brutallus->CastSpell(brutallus, SPELL_FEL_FIREBALL);
407 brutallus->SetImmuneToNPC(true);
408 }
410 break;
411 }
412 case EVENT_INTRO_12:
415 break;
416 case EVENT_INTRO_13:
420 break;
421 case EVENT_INTRO_14:
422 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
423 me->SetFacingToObject(brutallus);
425 break;
426 case EVENT_INTRO_15:
427 {
431 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
432 {
433 brutallus->SetDisableGravity(false);
434 brutallus->SetControlled(false, UNIT_STATE_ROOT);
435 }
437 break;
438 }
439 case EVENT_INTRO_16:
440 {
441 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
442 {
443 brutallus->SetDisableGravity(true);
444 brutallus->SetHover(true);
445 }
447 break;
448 }
449 case EVENT_INTRO_17:
450 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
451 brutallus->GetMotionMaster()->MovePoint(POINT_BRUTALLUS_OFFSET, BrutallusMoveOffsetPos);
453 break;
454 case EVENT_INTRO_18:
455 {
456 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
457 {
458 brutallus->CastSpell(brutallus, SPELL_ARCANE_EXPLOSION_VISUAL);
459 brutallus->CastSpell(brutallus, SPELL_CLEAR_ALL_DEBUFFS);
460 brutallus->AI()->Talk(SAY_INTRO_CHARGE);
461 brutallus->GetMotionMaster()->MoveFall();
462 }
465 break;
466 }
467 case EVENT_INTRO_19:
468 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
469 me->SetFacingToObject(brutallus);
471 me->SetImmuneToNPC(true);
473 break;
474 case EVENT_INTRO_20:
475 {
476 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
477 {
478 brutallus->SetDisableGravity(false);
479 brutallus->SetHover(false);
480 brutallus->CastSpell(brutallus, SPELL_CHARGE);
481 }
483 break;
484 }
485 case EVENT_INTRO_21:
490 break;
491 case EVENT_INTRO_22:
492 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
493 brutallus->CastSpell(brutallus, SPELL_CLEAR_RETURN_STATE);
495 break;
496 case EVENT_INTRO_23:
497 {
498 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
499 {
500 brutallus->CastSpell(brutallus, SPELL_FULL_HEAL);
501 brutallus->GetMotionMaster()->MovePoint(POINT_BRUTALLUS_COMBAT, BrutallusMoveCombatPos);
502 }
504 break;
505 }
506 case EVENT_INTRO_24:
507 {
508 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
509 {
510 brutallus->AI()->Talk(SAY_INTRO_KILL_MADRIGOSA);
511 brutallus->SetFacingTo(0.069813169538974761f);
512 }
514 break;
515 }
516 case EVENT_INTRO_25:
517 {
518 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
519 {
520 brutallus->AI()->Talk(SAY_INTRO_TAUNT);
521 brutallus->CastSpell(brutallus, SPELL_BREAK_ICE);
522 }
524 break;
525 }
526 case EVENT_INTRO_26:
527 {
529
530 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
531 {
532 brutallus->SetImmuneToNPC(false);
533 brutallus->SetHomePosition(brutallus->GetPosition());
534 brutallus->SetReactState(REACT_AGGRESSIVE);
536 brutallus->AI()->EnterEvadeMode();
537 }
538 break;
539 }
540
541 case EVENT_FROSTBOLT:
542 if (Creature* brutallus = _instance->GetCreature(DATA_BRUTALLUS))
543 DoCast(brutallus, SPELL_FROSTBOLT);
544 _events.Repeat(RAND(1200ms, 2400ms, 3600ms));
545 break;
546
547 case EVENT_OUTRO_1:
550 break;
551 case EVENT_OUTRO_2:
552 // We are not ready to summon Felmyst (currently it creates double spawn)
553 // DoCastSelf(SPELL_SUMMON_FELBLAZE);
555 break;
556 case EVENT_OUTRO_3:
558 break;
559 default:
560 break;
561 }
562 }
563
564 if (UpdateVictim())
566 }
567
568private:
571};
572
573// 45141 - Burn
575{
577
578 bool Validate(SpellInfo const* /*spellInfo*/) override
579 {
581 }
582
583 void HandleScript(SpellEffIndex /*effIndex*/)
584 {
585 Unit* target = GetHitUnit();
586 if (!target->HasAura(SPELL_BURN_DAMAGE))
587 target->CastSpell(target, SPELL_BURN_DAMAGE, true);
588 }
589
594};
595
596// 45151 - Burn
598{
600
601 bool Validate(SpellInfo const* /*spellInfo*/) override
602 {
604 }
605
606 void HandleScript(SpellEffIndex /*effIndex*/)
607 {
608 Unit* target = GetHitUnit();
609 if (!target->HasAura(SPELL_BURN_DAMAGE))
610 target->CastSpell(target, SPELL_BURN_DAMAGE, true);
611 }
612
617};
618
619// 46394 - Burn
635
636// 45185 - Stomp
656
657// 46609 - Freeze
659{
661
662 bool Validate(SpellInfo const* /*spellInfo*/) override
663 {
665 }
666
667 void HandleScript(SpellEffIndex /*effIndex*/)
668 {
670
672 if (InstanceScript* instance = GetHitUnit()->GetInstanceScript())
673 {
674 if (GameObject* iceBarrier = instance->GetGameObject(DATA_ICE_BARRIER))
675 {
676 iceBarrier->SetLootState(GO_READY);
677 iceBarrier->UseDoorOrButton();
678 }
679 }
680 }
681
686};
687
688// 46637 - Break Ice
690{
692
693 bool Validate(SpellInfo const* /*spellInfo*/) override
694 {
696 }
697
698 void AfterApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
699 {
701
703 if (InstanceScript* instance = GetTarget()->GetInstanceScript())
704 {
705 if (GameObject* iceBarrier = instance->GetGameObject(DATA_ICE_BARRIER))
706 {
707 iceBarrier->SetLootState(GO_READY);
708 iceBarrier->UseDoorOrButton();
709 }
710 }
711 }
712
713 void AfterRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
714 {
716 }
717
723};
724
725// 4853
727{
728public:
729 at_the_dead_scar() : OnlyOnceAreaTriggerScript("at_the_dead_scar") { }
730
731 bool TryHandleOnce(Player* player, AreaTriggerEntry const* /*areaTrigger*/) override
732 {
734 return true;
735 }
736};
737
First const & RAND(First const &first, Second const &second, Rest const &... rest)
int32_t int32
Definition Define.h:129
uint32_t uint32
Definition Define.h:133
@ GO_READY
Definition GameObject.h:77
@ POINT_MOTION_TYPE
@ TEMPSUMMON_MANUAL_DESPAWN
#define RegisterSpellScript(spell_script)
Definition ScriptMgr.h:1128
SpellEffIndex
@ EFFECT_0
@ EFFECT_2
@ SPELL_EFFECT_SCRIPT_EFFECT
@ EMOTE_ONESHOT_LAND
@ EMOTE_ONESHOT_LIFTOFF
AuraEffectHandleModes
@ AURA_EFFECT_HANDLE_REAL
@ SPELL_AURA_PERIODIC_DAMAGE
@ SPELL_AURA_DUMMY
#define SpellEffectFn(F, I, N)
#define AuraEffectUpdatePeriodicFn(F, I, N)
#define AuraEffectApplyFn(F, I, N, M)
#define AuraEffectRemoveFn(F, I, N, M)
@ REACT_PASSIVE
@ REACT_AGGRESSIVE
@ UNIT_STATE_ROOT
Definition Unit.h:230
@ UNIT_STATE_CASTING
Definition Unit.h:235
DamageEffectType
Definition Unit.h:352
Position const BrutallusMoveOffsetPos
Position const MadrigosaMoveLandPos2
Position const BrutallusMoveCombatPos
BrutallusSpells
@ SPELL_STOMP
@ SPELL_CLEAR_ALL_DEBUFFS
@ SPELL_CLEAR_RETURN_STATE
@ SPELL_FROSTBOLT
@ SPELL_FROST_BREATH
@ SPELL_ENCAPSULATE
@ SPELL_CHARGE
@ SPELL_SUMMON_DEATH_CLOUD
@ SPELL_FREEZE
@ SPELL_BURN_DAMAGE
@ SPELL_ARCANE_EXPLOSION_VISUAL
@ SPELL_BURN_PRIMER
@ SPELL_SELF_STUN
@ SPELL_SUMMON_FELBLAZE_PRE_VISUAL
@ SPELL_FROST_BLAST
@ SPELL_FEL_FIREBALL
@ SPELL_TAUNT_HIT_CHANCE
@ SPELL_DUAL_WIELD_PASSIVE
@ SPELL_BREAK_ICE_OBJECT
@ SPELL_FULL_HEAL
@ SPELL_FLAME_RING_1
@ SPELL_BERSERK
@ SPELL_METEOR_SLASH
@ SPELL_BREAK_ICE_KNOCK_BACK
@ SPELL_PERMANENT_FEIGN_DEATH
@ SPELL_SUMMON_FELBLAZE
@ SPELL_FLAME_RING_2
@ SPELL_BREAK_ICE
@ SPELL_FREEZE_OBJECT
BrutallusTexts
@ SAY_DEATH
@ SAY_INTRO_CHARGE
@ SAY_MADR_INTRO
@ SAY_INTRO_BREAK_ICE
@ SAY_LOVE
@ SAY_INTRO_KILL_MADRIGOSA
@ SAY_AGGRO
@ SAY_MADR_ICE_BARRIER
@ SAY_MADR_DEATH
@ SAY_SLAY
@ SAY_MADR_ICE_BLOCK
@ SAY_MADR_TRAP
@ SAY_BERSERK
@ SAY_INTRO_TAUNT
@ SAY_INTRO
Position const MadrigosaSpawnPos
void AddSC_boss_brutallus()
Position const MadrigosaMoveLandPos1
Position const MadrigosaMoveLiftoffPos
BrutallusPoints
@ POINT_MADRIGOSA_LIFTOFF
@ POINT_BRUTALLUS_OFFSET
@ POINT_MADRIGOSA_LAND_3
@ POINT_MADRIGOSA_LAND_1
@ POINT_BRUTALLUS_COMBAT
@ POINT_MADRIGOSA_LAND_2
BrutallusEvents
@ EVENT_INTRO_16
@ EVENT_INTRO_23
@ EVENT_INTRO_12
@ EVENT_INTRO_4
@ EVENT_OUTRO_2
@ EVENT_INTRO_19
@ EVENT_INTRO_14
@ EVENT_INTRO_1
@ EVENT_OUTRO_3
@ EVENT_INTRO_17
@ EVENT_INTRO_2
@ EVENT_INTRO_5
@ EVENT_BURN
@ EVENT_INTRO_18
@ EVENT_INTRO_8
@ EVENT_INTRO_20
@ EVENT_INTRO_21
@ EVENT_INTRO_13
@ EVENT_INTRO_24
@ EVENT_INTRO_9
@ EVENT_INTRO_6
@ EVENT_INTRO_7
@ EVENT_INTRO_26
@ EVENT_METEOR_SLASH
@ EVENT_BERSERK
@ EVENT_INTRO_22
@ EVENT_STOMP
@ EVENT_INTRO_15
@ EVENT_INTRO_10
@ EVENT_OUTRO_1
@ EVENT_INTRO_3
@ EVENT_INTRO_25
@ EVENT_INTRO_11
@ EVENT_FROSTBOLT
Position const MadrigosaMoveLandPos3
BrutallusActions
@ ACTION_START_OUTRO
uint32 GetTickNumber() const
void SetAmount(int32 amount)
int32 GetAmount() const
HookList< EffectApplyHandler > AfterEffectRemove
HookList< EffectApplyHandler > AfterEffectApply
HookList< EffectUpdatePeriodicHandler > OnEffectUpdatePeriodic
Unit * GetTarget() const
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
EventMap events
bool UpdateVictim()
Creature *const me
Definition CreatureAI.h:82
void SetHomePosition(float x, float y, float z, float o)
Definition Creature.h:293
void SetReactState(ReactStates st)
Definition Creature.h:119
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void SetImmuneToNPC(bool apply) override
Definition Creature.h:132
void Update(uint32 time)
Definition EventMap.h:67
void Repeat(Milliseconds time)
Definition EventMap.cpp:63
EventId ExecuteEvent()
Definition EventMap.cpp:73
void CancelEvent(EventId eventId)
Definition EventMap.cpp:151
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
Definition EventMap.cpp:36
Creature * GetCreature(uint32 type)
void MovePoint(uint32 id, Position const &pos, bool generatePath=true, Optional< float > finalOrient={})
uint32 GetEntry() const
Definition Object.h:81
uint32 Id
Definition SpellInfo.h:289
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
void DoMeleeAttackIfReady()
Definition UnitAI.cpp:54
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
Definition UnitAI.h:241
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
Definition UnitAI.cpp:166
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
Definition UnitAI.cpp:96
SpellCastResult DoCast(uint32 spellId)
Definition UnitAI.cpp:106
Definition Unit.h:769
void SetAnimTier(AnimTier animTier)
Definition Unit.cpp:10391
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true)
Definition Unit.cpp:3093
MotionMaster * GetMotionMaster()
Definition Unit.h:1667
bool SetHover(bool enable, bool updateAnimTier=true)
Definition Unit.cpp:13503
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition Unit.cpp:4535
bool SetDisableGravity(bool disable, bool updateAnimTier=true)
Definition Unit.cpp:13286
void SetFacingToObject(WorldObject const *object, bool force=true, uint32 movementId=EVENT_FACE)
Definition Unit.cpp:13259
uint32 GetHealth() const
Definition Unit.h:913
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition Unit.cpp:3784
bool HasUnitState(const uint32 f) const
Definition Unit.h:876
void HandleEmoteCommand(Emote emoteId)
Definition Unit.cpp:1568
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Definition Object.cpp:2832
TempSummon * SummonCreature(uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
Definition Object.cpp:1992
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
bool TryHandleOnce(Player *player, AreaTriggerEntry const *) override
void AfterApply(AuraEffect const *, AuraEffectHandleModes)
void AfterRemove(AuraEffect const *, AuraEffectHandleModes)
PrepareAuraScript(spell_brutallus_break_ice)
bool Validate(SpellInfo const *) override
PrepareSpellScript(spell_brutallus_burn_ally)
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
PrepareSpellScript(spell_brutallus_burn_primer)
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
void HandleEffectPeriodicUpdate(AuraEffect *aurEff)
PrepareAuraScript(spell_brutallus_burn)
void Register() override
bool Validate(SpellInfo const *) override
PrepareSpellScript(spell_brutallus_freeze)
void HandleScript(SpellEffIndex)
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
PrepareSpellScript(spell_brutallus_stomp)
void GetPosition(float &x, float &y) const
Definition Position.h:84
void AttackStart(Unit *) override
void JustEngagedWith(Unit *who) override
void Reset() override
void JustDied(Unit *) override
boss_brutallus(Creature *creature)
void UpdateAI(uint32 diff) override
void KilledUnit(Unit *) override
void OnSpellCast(SpellInfo const *spell) override
void JustAppeared() override
void UpdateAI(uint32 diff) override
void EnterEvadeMode(EvadeReason) override
@temporary: Find a better solution to end combat without breaking visuals (Feign Death)
InstanceScript * _instance
npc_madrigosa(Creature *creature)
void DoAction(int32 action) override
void MovementInform(uint32 type, uint32 id) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
#define RegisterSunwellPlateauCreatureAI(ai_name)
@ DATA_BRUTALLUS
@ DATA_ICE_BARRIER
@ DATA_WORLD_TRIGGER
@ DATA_MADRIGOSA
@ NPC_MADRIGOSA