113 { 895.3782f, -132.1722f, -49.66423f, 2.6529f },
114 { 893.9837f, -133.2879f, -49.66541f, 2.583087f },
115 { 896.2667f, -130.483f, -49.66249f, 2.600541f }
213 if (group->isLFGGroup())
348 coren->AI()->JustSummoned(
me);
408 trap->SetLootState(GO_ACTIVATED);
409 trap->UseDoorOrButton();
425 return GetBlackrockDepthsAI<go_direbrew_mole_machineAI>(go);
457 if (targets.size() > 1)
470 targets.push_back(target);
552 aura->SetStackAmount(aura->GetStackAmount() + 1);
553 aura->SetDuration(aura->GetDuration() - 1500);
std::chrono::seconds Seconds
Seconds shorthand typedef.
@ TEMPSUMMON_DEAD_DESPAWN
#define RegisterSpellScript(spell_script)
void CloseGossipMenuFor(Player *player)
@ TARGET_UNIT_SRC_AREA_ENTRY
@ SPELL_EFFECT_SCRIPT_EFFECT
@ FACTION_GOBLIN_DARK_IRON_BAR_PATRON
@ AURA_EFFECT_HANDLE_REAL
@ SPELL_AURA_PERIODIC_DUMMY
@ SPELL_AURA_PERIODIC_TRIGGER_SPELL
@ TRIGGERED_FULL_MASK
Used when doing CastSpell with triggered == true.
#define SpellEffectFn(F, I, N)
#define SpellObjectAreaTargetSelectFn(F, I, N)
#define AuraEffectPeriodicFn(F, I, N)
#define AuraEffectRemoveFn(F, I, N, M)
#define RegisterBlackrockDepthsCreatureAI(ai_name)
@ ACTION_ANTAGONIST_SAY_1
@ ACTION_ANTAGONIST_HOSTILE
@ ACTION_ANTAGONIST_SAY_2
void AddSC_boss_coren_direbrew()
@ EVENT_SUMMON_MOLE_MACHINE
@ SPELL_MOLE_MACHINE_TARGET_PICKER
@ SPELL_REQUEST_SECOND_MUG
@ SPELL_MOLE_MACHINE_MINION_SUMMONER
@ SPELL_MOLE_MACHINE_EMERGE
@ SPELL_SEND_MUG_CONTROL_AURA
@ SPELL_SEND_MUG_TARGET_PICKER
@ SPELL_DIREBREW_DISARM_PRE_CAST
@ SPELL_BARRELED_CONTROL_AURA
@ SPELL_DIREBREW_DISARM_GROW
@ SPELL_HAS_DARK_BREWMAIDENS_BREW
@ GOSSIP_OPTION_APOLOGIZE
Position const AntagonistPos[3]
void PreventDefaultAction()
HookList< EffectPeriodicHandler > OnEffectPeriodic
HookList< EffectApplyHandler > OnEffectApply
void _DespawnAtEvade(Seconds delayToRespawn=30s, Creature *who=nullptr)
virtual void JustEngagedWith(Unit *)
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
bool _EnterEvadeMode(EvadeReason why=EvadeReason::Other)
void SetImmuneToPC(bool apply) override
void Repeat(Milliseconds time)
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
bool IsInPhase(uint8 phase) const
void SetPhase(uint8 phase)
void UseDoorOrButton(uint32 time_to_restore=0, bool alternative=false, Unit *user=nullptr)
void SetLootState(LootState s, Unit *unit=nullptr)
GameObject * GetLinkedTrap()
virtual ObjectGuid GetGuidData(uint32 type) const override
PlayerList const & GetPlayers() const
static ObjectGuid const Empty
static ObjectGuid GetGUID(Object const *o)
Group * GetGroup(Optional< uint8 > partyIndex)
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
void DoAction(int32 info, Predicate &&predicate, uint16 max=0)
TaskContext & Repeat(std::chrono::duration< Rep, Period > duration)
TaskScheduler & Schedule(std::chrono::duration< Rep, Period > time, task_handler_t task)
TaskScheduler & Update(success_t const &callback=nullptr)
TaskScheduler & SetValidator(P &&predicate)
Sets a validator which is asked if tasks are allowed to be executed.
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
virtual ObjectGuid GetGUID(int32=0) const
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
virtual void SetGUID(ObjectGuid const &, int32=0)
SpellCastResult DoCast(uint32 spellId)
void SetFaction(uint32 faction) override
bool HasUnitState(const uint32 f) const
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
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)
go_direbrew_mole_machine()
GameObjectAI * GetAI(GameObject *go) const override
void PeriodicTick(AuraEffect const *)
void PeriodicTick(AuraEffect const *)
void OnApply(AuraEffect const *, AuraEffectHandleModes)
bool Validate(SpellInfo const *) override
bool Validate(SpellInfo const *) override
void HandleScriptEffect(SpellEffIndex)
bool Validate(SpellInfo const *) override
void HandleScriptEffect(SpellEffIndex)
bool Validate(SpellInfo const *) override
void PeriodicTick(AuraEffect const *)
void HandleDummy(SpellEffIndex)
void FilterTargets(std::list< WorldObject * > &targets)
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
auto SelectRandomContainerElement(C const &container) -> typename std::add_const< decltype(*std::begin(container))>::type &
constexpr void GetPosition(float &x, float &y) const
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void SummonSister(uint32 entry)
void SummonedCreatureDies(Creature *summon, Unit *) override
void UpdateAI(uint32 diff) override
void EnterEvadeMode(EvadeReason) override
void MoveInLineOfSight(Unit *who) override
boss_coren_direbrew(Creature *creature)
void DoAction(int32 action) override
bool OnGossipSelect(Player *player, uint32 menuId, uint32 gossipListId) override
void JustDied(Unit *) override
void UpdateAI(uint32 diff) override
go_direbrew_mole_machineAI(GameObject *go)
void JustEngagedWith(Unit *) override
npc_coren_direbrew_sisters(Creature *creature)
ObjectGuid GetGUID(int32 data) const override
void UpdateAI(uint32 diff) override
void SetGUID(ObjectGuid const &guid, int32 id) override
npc_direbrew_antagonist(Creature *creature)
void DoAction(int32 action) override
void JustEngagedWith(Unit *who) override
void IsSummonedBy(WorldObject *) override
npc_direbrew_minion(Creature *creature)
InstanceScript * _instance