![]() |
TrinityCore
|
Inheritance diagram for spell_dk_raise_dead:Private Member Functions | |
| PrepareSpellScript (spell_dk_raise_dead) | |
| bool | Validate (SpellInfo const *spellInfo) override |
| bool | Load () override |
| SpellCastResult | CheckCast () |
| SpellCastResult | CheckReagents () |
| void | CheckTargets (std::list< WorldObject * > &targets) |
| void | CheckTarget (WorldObject *&target) |
| void | ConsumeReagents () |
| uint32 | GetGhoulSpellId () |
| void | HandleRaiseDead (SpellEffIndex) |
| void | OverrideCooldown () |
| void | Register () override |
Private Attributes | |
| SpellCastResult | _result = SPELL_CAST_OK |
| bool | _corpse = false |
Definition at line 1631 of file spell_dk.cpp.
|
inlineprivate |
process spell target selection before cast starts targets of effect_1 are used to check cast
cleanup spell target map, and fill it again on normal way
_result is set in spell target selection
Definition at line 1651 of file spell_dk.cpp.
References _result, Spell::CleanupTargetList(), SpellScript::GetSpell(), and Spell::SelectSpellTargets().
Referenced by Register().
|
inlineprivate |
@workaround: there is no access to castresult of other spells, check it manually
Definition at line 1662 of file spell_dk.cpp.
References Player::CanNoReagentCast(), SpellScript::GetCaster(), Player::HasItemCount(), MAX_SPELL_REAGENTS, SpellInfo::Reagent, SpellInfo::ReagentCount, Spell::SendCastResult(), SPELL_CAST_OK, SPELL_CUSTOM_ERROR_NONE, SPELL_DK_RAISE_DEAD_USE_REAGENT, SPELL_FAILED_DONT_REPORT, SPELL_FAILED_REAGENTS, sSpellMgr, and Object::ToPlayer().
Referenced by CheckTargets().
|
inlineprivate |
|
inlineprivate |
Definition at line 1685 of file spell_dk.cpp.
References _corpse, _result, CheckReagents(), SpellScript::GetCaster(), SpellScript::GetSpell(), Trinity::Containers::SelectRandomContainerElement(), and SPELL_STATE_PREPARING.
Referenced by Register().
|
inlineprivate |
Definition at line 1710 of file spell_dk.cpp.
References _corpse, WorldObject::CastSpell(), SpellScript::GetCaster(), SPELL_DK_RAISE_DEAD_USE_REAGENT, TRIGGERED_FULL_MASK, and TRIGGERED_IGNORE_POWER_AND_REAGENT_COST.
Referenced by Register().
|
inlineprivate |
Definition at line 1717 of file spell_dk.cpp.
References SpellEffectInfo::CalcValue(), EFFECT_1, EFFECT_2, SpellScript::GetCaster(), SpellInfo::GetEffect(), SpellScript::GetSpellInfo(), and SPELL_DK_MASTER_OF_GHOULS.
Referenced by HandleRaiseDead().
|
inlineprivate |
Definition at line 1728 of file spell_dk.cpp.
References WorldObject::CastSpell(), SpellScript::GetCaster(), GetGhoulSpellId(), SpellScript::GetHitUnit(), and TRIGGERED_FULL_MASK.
Referenced by Register().
|
inlineoverrideprivatevirtual |
Reimplemented from _SpellScript.
Definition at line 1646 of file spell_dk.cpp.
References SpellScript::GetCaster(), Object::GetTypeId(), and TYPEID_PLAYER.
|
inlineprivate |
Definition at line 1733 of file spell_dk.cpp.
References SpellScript::GetCaster(), Unit::GetSpellHistory(), SpellScript::GetSpellInfo(), and SpellHistory::StartCooldown().
Referenced by Register().
|
private |
|
inlineoverrideprivatevirtual |
Implements _SpellScript.
Definition at line 1742 of file spell_dk.cpp.
References SpellScript::AfterCast, CheckCast(), CheckTarget(), CheckTargets(), ConsumeReagents(), EFFECT_1, EFFECT_2, HandleRaiseDead(), SpellScript::OnCast, SpellScript::OnCheckCast, SpellScript::OnEffectHitTarget, SpellScript::OnObjectAreaTargetSelect, SpellScript::OnObjectTargetSelect, OverrideCooldown(), SPELL_EFFECT_DUMMY, SPELL_EFFECT_SCRIPT_EFFECT, SpellCastFn, SpellCheckCastFn, SpellEffectFn, SpellObjectAreaTargetSelectFn, SpellObjectTargetSelectFn, TARGET_UNIT_CASTER, and TARGET_UNIT_DEST_AREA_ENTRY.
|
inlineoverrideprivatevirtual |
Reimplemented from _SpellScript.
Definition at line 1635 of file spell_dk.cpp.
References SpellEffectInfo::CalcValue(), EFFECT_1, EFFECT_2, SpellInfo::GetEffect(), SPELL_DK_MASTER_OF_GHOULS, SPELL_DK_RAISE_DEAD_USE_REAGENT, and _SpellScript::ValidateSpellInfo().
|
private |
Definition at line 1754 of file spell_dk.cpp.
Referenced by CheckTarget(), CheckTargets(), and ConsumeReagents().
|
private |
Definition at line 1753 of file spell_dk.cpp.
Referenced by CheckCast(), and CheckTargets().