221 if (eff->GetTickNumber() != spellInfo->
GetMaxTicks())
253 sartura->AI()->AttackStart(player);
uint32 urand(uint32 min, uint32 max)
#define RegisterSpellScript(spell_script)
@ SPELL_EFFECT_SCRIPT_EFFECT
#define SpellEffectFn(F, I, N)
void AddSC_boss_sartura()
void JustEngagedWith(Unit *who) override
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
static Creature * ToCreature(Object *o)
uint32 GetMaxTicks() const
HookList< EffectHandler > OnEffectHit
SpellInfo const * GetTriggeringSpell() const
void AddThreat(Unit *target, float amount, SpellInfo const *spell=nullptr, bool ignoreModifiers=false, bool ignoreRedirects=false)
== AFFECT MY THREAT LIST ==
void DoMeleeAttackIfReady()
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
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)
ThreatManager & GetThreatManager()
AuraEffect * GetAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
bool HasUnitState(const uint32 f) const
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
InstanceScript * GetInstanceScript() const
at_aq_battleguard_sartura()
bool OnTrigger(Player *player, AreaTriggerEntry const *) override
PrepareSpellScript(spell_sartura_whirlwind)
void HandleScript(SpellEffIndex)
void KilledUnit(Unit *) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override
void OnSpellCast(SpellInfo const *spell) override
boss_sartura(Creature *creature)
void JustEngagedWith(Unit *who) override
void JustDied(Unit *) override
void UpdateAI(uint32 diff) override
void JustEngagedWith(Unit *) override
void UpdateAI(uint32 diff) override
npc_sartura_royal_guard(Creature *creature)
#define RegisterAQ40CreatureAI(ai_name)