◆ HandleScript()
void spell_hallows_end_trick_or_treat::HandleScript |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
143 {
145 {
148 }
149 }
bool roll_chance_i(int chance)
Definition Random.h:60
Player * GetHitPlayer()
Definition SpellScript.cpp:471
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
@ SPELL_TRICKED_OR_TREATED
Definition hallows_end.cpp:135
@ SPELL_TREAT
Definition hallows_end.cpp:134
@ SPELL_TRICK
Definition hallows_end.cpp:133
References Unit::CastSpell(), SpellScript::GetCaster(), SpellScript::GetHitPlayer(), roll_chance_i(), SPELL_TREAT, SPELL_TRICK, and SPELL_TRICKED_OR_TREATED.
Referenced by Register().
◆ PrepareSpellScript()
◆ Register()
void spell_hallows_end_trick_or_treat::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: