766 {
768 if (
Unit* target =
GetUnitOwner()->GetAI()->SelectTarget(SelectTargetMethod::Random, 0, 100.0f,
true))
769 {
772 }
773 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
void AddEvent(BasicEvent *Event, uint64 e_time, bool set_addtime=true)
Definition: EventProcessor.h:103
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
EventProcessor m_Events
Definition: Unit.h:1792
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1168
void PreventDefaultAction()
Definition: SpellScript.cpp:985
SpellInfo const * GetSpellInfo() const
Definition: SpellScript.cpp:1005
Unit * GetUnitOwner() const
Definition: SpellScript.cpp:1030
Definition: boss_illidari_council.cpp:104