69 blackheart->GetThreatManager().AddThreat(
me, 0.0f);
188 trigger->GetThreatManager().AddThreat(who, 0.0f);
189 for (
Unit* other : trigger->m_Controlled)
192 other->GetThreatManager().AddThreat(who, 0.0f);
#define RegisterSpellScript(spell_script)
@ SPELL_EFFECT_SCRIPT_EFFECT
#define SpellEffectFn(F, I, N)
void AddSC_boss_blackheart_the_inciter()
void OnCharmed(bool isNew) override
void JustEngagedWith(Unit *who) override
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
bool HasReactState(ReactStates state) const
void SetReactState(ReactStates st)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
virtual ObjectGuid GetGuidData(uint32 type) const override
NullCreatureAI(Creature *creature)
static Unit * ToUnit(Object *o)
void OnCharmed(bool isNew) override
SimpleCharmedPlayerAI(Player *player)
Unit * GetHitUnit() const
HookList< EffectHandler > OnEffectHitTarget
void AddThreat(Unit *target, float amount, SpellInfo const *spell=nullptr, bool ignoreModifiers=false, bool ignoreRedirects=false)
== AFFECT MY THREAT LIST ==
uint32 GetThreatListPlayerCount(bool includeOffline=false) const
void DoMeleeAttackIfReady()
SpellCastResult DoCastSelf(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)
SpellCastResult DoCast(uint32 spellId)
ThreatManager & GetThreatManager()
bool HasUnitState(const uint32 f) const
InstanceScript * GetInstanceScript() const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
PrepareSpellScript(spell_blackheart_incite_chaos)
static const uint8 NUM_INCITE_SPELLS
bool Validate(SpellInfo const *) override
static const uint32 INCITE_SPELLS[NUM_INCITE_SPELLS]
void HandleDummy(SpellEffIndex)
GuidUnorderedSet const * GetBlackheartDummies(InstanceScript const *s)
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
#define RegisterShadowLabyrinthCreatureAI(ai_name)
@ DATA_BLACKHEART_THE_INCITER
void ResetThreatList(Unit *who=nullptr)
void IsSummonedBy(WorldObject *whoWO) override
static const uint32 FIRST_DUMMY
void UpdateAI(uint32) override
static const uint32 LAST_DUMMY
void InitializeAI() override
PlayerAI * GetAIForCharmedPlayer(Player *player) override
void UpdateAI(uint32 diff) override
void JustDied(Unit *) override
boss_blackheart_the_inciter(Creature *creature)
void KilledUnit(Unit *who) override
void SetData(uint32, uint32 data) override
void JustEngagedWith(Unit *who) override