34#define SPELL_WEB_SPRAY RAID_MODE(29484,54125)
35#define SPELL_FRENZY_HELPER RAID_MODE(54123,54124)
50#define MAX_WRAP_POSITION 7
53 {3453.818f, -3854.651f, 308.7581f, 4.362833f},
54 {3535.042f, -3842.383f, 300.795f, 3.179324f},
55 {3538.399f, -3846.088f, 299.964f, 4.310297f},
56 {3548.464f, -3854.676f, 298.6075f, 4.546609f},
57 {3557.663f, -3870.123f, 297.5027f, 3.756433f},
58 {3560.546f, -3879.353f, 297.4843f, 2.508937f},
59 {3562.535f, -3892.507f, 298.532f, 6.022466f},
130 std::list<Unit*> targets;
132 if (!targets.empty())
136 for (
Unit* target : targets)
146 wrap->AI()->SetGUID(target->GetGUID());
170 for (
uint8 i = 0; i < amount; ++i)
std::chrono::seconds Seconds
Seconds shorthand typedef.
@ TEMPSUMMON_TIMED_DESPAWN
@ TEMPSUMMON_CORPSE_TIMED_DESPAWN
Milliseconds randtime(Milliseconds min, Milliseconds max)
uint32 urand(uint32 min, uint32 max)
@ TRIGGERED_FULL_MASK
Used when doing CastSpell with triggered == true.
constexpr std::underlying_type< E >::type AsUnderlyingType(E enumValue)
const Position WrapPositions[MAX_WRAP_POSITION]
#define SPELL_FRENZY_HELPER
#define MAX_WRAP_POSITION
const float WEB_WRAP_MOVE_SPEED
void AddSC_boss_maexxna()
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Creature * DoSummon(uint32 entry, Position const &pos, Milliseconds despawnTime=30s, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void Repeat(Milliseconds time)
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
void DoRemoveAurasDueToSpellOnPlayers(uint32 spell, bool includePets=false, bool includeControlled=false)
static ObjectGuid GetGUID(Object const *o)
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
void SelectTargetList(std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
SpellCastResult DoCastAOE(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCast(uint32 spellId)
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
float GetDistance2d(WorldObject const *obj) const
TC_GAME_API Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
#define RegisterNaxxramasCreatureAI(ai_name)
T const & RAID_MODE(T const &normal10, T const &normal25) const
bool HealthBelowPct(uint32 pct) const
bool operator()(Unit const *target) const
WebTargetSelector(Unit *maexxna)
boss_maexxna(Creature *creature)
void UpdateAI(uint32 diff) override
void JustEngagedWith(Unit *who) override
npc_webwrap(Creature *creature)
void JustDied(Unit *) override
void SetGUID(ObjectGuid const &guid, int32) override
void InitializeAI() override
void UpdateAI(uint32 diff) override