AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Private Member Functions | |
PrepareSpellScript (spell_midsummer_fling_torch) | |
bool | Validate (SpellInfo const *) override |
bool | Load () override |
void | ThrowNextTorch (Unit *caster) |
void | HandleFinish () |
void | HandleScript (SpellEffIndex effIndex) |
void | Register () override |
Private Attributes | |
bool | handled |
|
inlineprivate |
References Unit::CastSpell(), SpellScript::GetCaster(), SpellScript::GetExplTargetDest(), SpellScript::GetSpellInfo(), handled, Unit::RemoveAurasDueToSpell(), SPELL_FLING_TORCH_DUMMY, SPELL_MISSED_TORCH, SPELL_TORCH_COUNTER, ThrowNextTorch(), and Object::ToPlayer().
Referenced by Register().
|
inlineprivate |
References SpellScript::GetCaster(), SpellScript::GetHitPlayer(), handled, SpellScript::PreventHitDefaultEffect(), QUEST_MORE_TORCH_TOSS_A, QUEST_MORE_TORCH_TOSS_H, QUEST_STATUS_INCOMPLETE, SPELL_TORCH_CATCH_SUCCESS_A, SPELL_TORCH_CATCH_SUCCESS_H, SPELL_TORCH_COUNTER, and ThrowNextTorch().
Referenced by Register().
|
inlineoverrideprivatevirtual |
|
private |
|
inlineoverrideprivatevirtual |
Implements _SpellScript.
References SpellScript::AfterCast, EFFECT_0, HandleFinish(), HandleScript(), _SpellScript::m_scriptSpellId, SpellScript::OnEffectHitTarget, SPELL_EFFECT_SCRIPT_EFFECT, SPELL_JUGGLE_TORCH, SpellCastFn, and SpellEffectFn.
|
inlineprivate |
References Unit::CastSpell(), WorldObject::FindNearestCreature(), frand(), Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), SpellScript::GetSpellInfo(), NPC_TORCH_TARGET, Position::RelocatePolarOffset(), Position::SetOrientation(), SPELL_FLING_TORCH, SPELL_FLING_TORCH_DUMMY, and SPELL_TORCH_SHADOW.
Referenced by HandleFinish(), and HandleScript().
|
inlineoverrideprivatevirtual |
Reimplemented from _SpellScript.
References SPELL_FLING_TORCH, SPELL_MISSED_TORCH, SPELL_TORCH_CATCH_SUCCESS_A, SPELL_TORCH_CATCH_SUCCESS_H, SPELL_TORCH_COUNTER, SPELL_TORCH_SHADOW, and _SpellScript::ValidateSpellInfo().
|
private |
Referenced by HandleFinish(), HandleScript(), and Load().