312 Vapor->AI()->AttackStart(target);
340 pVapor->AI()->AttackStart(target);
495 std::vector<Position> unyieldingDeadPositions;
503 unyieldingDeadPositions.push_back(vapor->GetPosition());
508 for (
Position const& unyieldingDeadPosition : unyieldingDeadPositions)
@ TEMPSUMMON_TIMED_DESPAWN
@ TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT
#define RegisterSpellScript(spell_script)
@ SPELL_SCHOOL_MASK_NORMAL
@ SPELL_TRANSFORM_FELMYST
@ SPELL_TRANSFORM_TRIGGER
@ SPELL_ENCAPSULATE_EFFECT
@ SPELL_ENCAPSULATE_CHANNEL
void AddSC_boss_felmyst()
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void JustDied(Unit *) override
void JustSummoned(Creature *summon) override
void _DespawnAtEvade(Seconds delayToRespawn=30s, Creature *who=nullptr)
virtual void MoveInLineOfSight(Unit *)
@ EVADE_REASON_NO_HOSTILES
void DoZoneInCombat(Creature *creature=nullptr)
void SetDisplayId(uint32 modelId) override
void SetTarget(ObjectGuid guid) override
CreatureTemplate const * GetCreatureTemplate() const
bool IsInEvadeMode() const
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
Creature * GetCreature(uint32 type)
virtual ObjectGuid GetGuidData(uint32 type) const override
EncounterState GetBossState(uint32 id) const
void MovePoint(uint32 id, Position const &pos, bool generatePath=true, Optional< float > finalOrient={})
static Unit * ToUnit(Object *o)
static ObjectGuid GetGUID(Object const *o)
HookList< HitHandler > AfterHit
Unit * GetHitUnit() const
void DespawnIf(T const &predicate)
void DoMeleeAttackIfReady()
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
virtual void AttackStart(Unit *)
SpellCastResult DoCast(uint32 spellId)
static uint32 DealDamage(Unit *attacker, Unit *victim, uint32 damage, CleanDamage const *cleanDamage=nullptr, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=nullptr, bool durabilityLoss=true)
void CastStop(uint32 except_spellid=0)
void StopMoving(bool force=false)
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true)
MotionMaster * GetMotionMaster()
bool IsNonMeleeSpellCast(bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const
uint32 GetMaxHealth() const
void SetNativeDisplayId(uint32 displayId)
bool SetDisableGravity(bool disable, bool updateAnimTier=true)
void SetBoundingRadius(float boundingRadius)
void SetCombatReach(float combatReach)
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void SetSpeedRate(UnitMoveType mtype, float rate)
void HandleEmoteCommand(Emote emoteId)
void SetFacingTo(float ori, bool force=true, uint32 movementId=EVENT_FACE)
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)
void GetContactPoint(WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const
void UpdateGroundPositionZ(float x, float y, float &z) const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
bool Validate(SpellInfo const *) override
PrepareSpellScript(spell_felmyst_encapsulate)
TC_GAME_API Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
float GetPositionZ() const
float GetAbsoluteAngle(float x, float y) const
float GetPositionX() const
void GetPosition(float &x, float &y) const
float GetPositionY() const
void Relocate(float x, float y)
void AttackStart(Unit *) override
void DoStartMovement(Unit *target, float distance=0.0f, float angle=0.0f)
void DespawnSummons(uint32 entry)
void SpellHit(WorldObject *caster, SpellInfo const *spellInfo) override
void UpdateAI(uint32 diff) override
void EnterPhase(PhaseFelmyst NextPhase)
void JustDied(Unit *killer) override
void JustAppeared() override
void JustEngagedWith(Unit *who) override
boss_felmyst(Creature *creature)
void MoveInLineOfSight(Unit *who) override
void MovementInform(uint32, uint32) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void AttackStart(Unit *who) override
void JustSummoned(Creature *summon) override
void EnterEvadeMode(EvadeReason) override
void HandleFlightSequence()
void InitializeAI() override
void KilledUnit(Unit *) override
void AttackStart(Unit *) override
void JustEngagedWith(Unit *) override
void MoveInLineOfSight(Unit *) override
void UpdateAI(uint32) override
npc_felmyst_trail(Creature *creature)
npc_felmyst_vapor(Creature *creature)
void JustEngagedWith(Unit *) override
void UpdateAI(uint32) override
#define RegisterSunwellPlateauCreatureAI(ai_name)