266 return GetGruulsLairAI<boss_gruulAI>(creature);
uint32 urand(uint32 min, uint32 max)
@ SPELL_EFFECT_SCRIPT_EFFECT
@ TRIGGERED_FULL_MASK
Used when doing CastSpell with triggered == true.
#define SpellEffectFn(F, I, N)
void JustEngagedWith(Unit *who) override
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
MovementGeneratorType GetCurrentMovementGeneratorType() const
void MoveChase(Unit *target, Optional< ChaseRange > dist={}, Optional< ChaseAngle > angle={})
static ObjectGuid GetGUID(Object const *o)
float CalcRadius(WorldObject *caster=nullptr, SpellTargetIndex targetIndex=SpellTargetIndex::TargetA, Spell *=nullptr) const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
static bool ValidateSpellEffect(std::initializer_list< std::pair< uint32, SpellEffIndex > > effects)
int32 GetHitDamage() const
HookList< HitHandler > OnHit
Unit * GetHitUnit() const
SpellEffectInfo const & GetEffectInfo() const
HookList< EffectHandler > OnEffectHitTarget
void SetHitDamage(int32 damage)
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 DoCast(uint32 spellId)
bool IsWithinMeleeRange(Unit const *obj) const
MotionMaster * GetMotionMaster()
bool HasUnitState(const uint32 f) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
float GetDistance2d(WorldObject const *obj) const
CreatureAI * GetAI(Creature *creature) const override
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
bool Validate(SpellInfo const *spellInfo) override
SpellScript * GetSpellScript() const override
spell_gruul_shatter_effect()
SpellScript * GetSpellScript() const override
void SpellHitTarget(WorldObject *target, SpellInfo const *spellInfo) override
void KilledUnit(Unit *who) override
void JustEngagedWith(Unit *who) override
uint32 m_uiGroundSlamTimer
bool m_bPerformingGroundSlam
uint32 m_uiHurtfulStrike_Timer
void UpdateAI(uint32 diff) override
void JustDied(Unit *) override
uint32 m_uiReverberation_Timer
boss_gruulAI(Creature *creature)
uint32 m_uiCaveIn_StaticTimer