768 {
770 if (
Unit* target =
GetUnitOwner()->GetAI()->SelectTarget(SelectTargetMethod::Random, 0, 100.0f,
true))
771 {
774 }
775 }
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:112
EventProcessor m_Events
Definition: Object.h:642
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:1167
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:105