141 return GetShadowfangKeepAI<npc_shadowfang_prisonerAI>(creature);
152 return GetShadowfangKeepAI<npc_arugal_voidwalkerAI>(creature);
315 return GetShadowfangKeepAI<boss_archmage_arugalAI>(creature);
std::chrono::seconds Seconds
Seconds shorthand typedef.
int32 irand(int32 min, int32 max)
uint32 urand(uint32 min, uint32 max)
void SendGossipMenuFor(Player *player, uint32 npcTextID, ObjectGuid const &guid)
void AddGossipItemFor(Player *player, GossipOptionIcon icon, std::string const &text, uint32 sender, uint32 action)
void ClearGossipMenuFor(Player *player)
void InitGossipMenuFor(Player *player, uint32 menuId)
void CloseGossipMenuFor(Player *player)
#define AuraEffectPeriodicFn(F, I, N)
#define AuraEffectUpdatePeriodicFn(F, I, N)
#define AuraEffectCalcPeriodicFn(F, I, N)
void CalculatePeriodic(Unit *caster, bool resetPeriodicTimer=true, bool load=false)
HookList< EffectCalcPeriodicHandler > DoEffectCalcPeriodic
HookList< EffectPeriodicHandler > OnEffectPeriodic
HookList< EffectUpdatePeriodicHandler > OnEffectUpdatePeriodic
void JustEngagedWith(Unit *who) override
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
static ObjectGuid GetGUID(Object const *o)
static uint32 GetDefaultGossipMenuForSource(WorldObject *source)
uint32 GetGossipTextId(uint32 menuId, WorldObject *source)
PlayerMenu * PlayerTalkClass
void AttackStartCaster(Unit *victim, float dist)
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)
SpellCastResult DoCastAOE(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCast(uint32 spellId)
bool HasUnitState(const uint32 f) const
InstanceScript * GetInstanceScript() const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
virtual uint32 GetData(uint32) const
virtual void SetData(uint32, uint32)
CreatureAI * GetAI(Creature *creature) const override
CreatureAI * GetAI(Creature *creature) const override
CreatureAI * GetAI(Creature *creature) const override
npc_shadowfang_prisoner()
void HandleUpdatePeriodic(AuraEffect *aurEff)
void HandleDummyTick(AuraEffect const *aurEff)
PrepareAuraScript(spell_shadowfang_keep_haunting_spirits_AuraScript)
void CalcPeriodic(AuraEffect const *, bool &isPeriodic, int32 &litude)
AuraScript * GetAuraScript() const override
spell_shadowfang_keep_haunting_spirits()
void AddSC_shadowfang_keep()
void Start(bool isActiveAttacker=true, ObjectGuid playerGUID=ObjectGuid::Empty, Quest const *quest=nullptr, bool instantRespawn=false, bool canLoopPath=false)
void LoadPath(uint32 pathId)
Player * GetPlayerForEscort()
boss_archmage_arugalAI(Creature *creature)
void SpellHitTarget(WorldObject *, SpellInfo const *spellInfo) override
void KilledUnit(Unit *who) override
void AttackStart(Unit *who) override
void UpdateAI(uint32 diff) override
uint32 teleportSpells[NUM_TELEPORT_SPELLS]
void JustEngagedWith(Unit *who) override
InstanceScript * instance
void UpdateAI(uint32 uiDiff) override
npc_arugal_voidwalkerAI(Creature *creature)
void JustDied(Unit *) override
InstanceScript * instance
void WaypointReached(uint32 waypointId, uint32) override
npc_shadowfang_prisonerAI(Creature *creature)
bool OnGossipSelect(Player *player, uint32, uint32 gossipListId) override
bool OnGossipHello(Player *player) override
void JustEngagedWith(Unit *) override