◆ HandleHit()
void spell_magtheridon_quake::HandleHit |
( |
| ) |
|
|
inlineprivate |
374 {
375 if (
urand(0, 3) == 0)
377 }
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
@ SPELL_QUAKE_KNOCKBACK
Definition boss_magtheridon.cpp:59
Unit * GetCaster()
Definition SpellScript.cpp:401
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:1178
References Unit::CastSpell(), SpellScript::GetCaster(), SPELL_QUAKE_KNOCKBACK, and urand().
Referenced by Register().
◆ PrepareSpellScript()
◆ Register()
void spell_magtheridon_quake::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
Implements _SpellScript.
380 {
382 }
#define SpellHitFn(F)
Definition SpellScript.h:349
HookList< HitHandler > OnHit
Definition SpellScript.h:345
void HandleHit()
Definition boss_magtheridon.cpp:373
References HandleHit(), SpellScript::OnHit, and SpellHitFn.
The documentation for this class was generated from the following file: