AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Private Member Functions | |
PrepareSpellScript (spell_midsummer_fling_torch) | |
bool | Validate (SpellInfo const *) override |
bool | Load () override |
SpellCastResult | CheckCast () |
void | ThrowNextTorch (Unit *caster) |
void | HandleFinish () |
void | HandleScript (SpellEffIndex effIndex) |
void | Register () override |
Private Attributes | |
bool | handled |
std::list< Creature * > | _crList |
|
inlineprivate |
References _crList, SpellScript::GetCaster(), WorldObject::GetCreaturesWithEntryInRange(), NPC_TORCH_TARGET, SPELL_CAST_OK, and SPELL_FAILED_NOT_HERE.
Referenced by Register().
|
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, CheckCast(), EFFECT_0, HandleFinish(), HandleScript(), _SpellScript::m_scriptSpellId, SpellScript::OnCheckCast, SpellScript::OnEffectHitTarget, SPELL_EFFECT_SCRIPT_EFFECT, SPELL_JUGGLE_TORCH, SpellCastFn, SpellCheckCastFn, and SpellEffectFn.
|
inlineprivate |
References _crList, Unit::CastSpell(), WorldObject::GetDistance(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Position::Relocate(), SPELL_FLING_TORCH, SPELL_TORCH_SHADOW, and urand().
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 CheckCast(), and ThrowNextTorch().
|
private |
Referenced by HandleFinish(), HandleScript(), and Load().