![]() |
TrinityCore
|
Inheritance diagram for spell_warr_execute:Classes | |
| struct | TriggerArgs |
Private Member Functions | |
| bool | Validate (SpellInfo const *spellInfo) override |
| Optional< int32 > | GetSuddenDeathRageCost () const |
| std::pair< int32, int32 > | GetRageCost () const |
| void | HandleExecuteCast (SpellEffIndex spellEffIndex) |
| void | Register () override |
Definition at line 747 of file spell_warrior.cpp.
Definition at line 770 of file spell_warrior.cpp.
References SpellScript::GetSpellInfo(), POWER_RAGE, and SpellInfo::PowerCosts.
Referenced by HandleExecuteCast().
Definition at line 760 of file spell_warrior.cpp.
References EFFECT_0, SpellScript::GetCaster(), SpellScript::GetSpell(), SPELL_WARRIOR_SUDDEN_DEATH, and SPELL_WARRIOR_SUDDEN_DEATH_BUFF.
Referenced by HandleExecuteCast().
|
inlineprivate |
Definition at line 779 of file spell_warrior.cpp.
References spell_warr_execute::TriggerArgs::BaseRageCost, CalculatePct(), WorldObject::CastSpell(), EFFECT_1, SpellScript::GetCaster(), SpellScript::GetEffectInfo(), SpellScript::GetHitUnit(), Spell::GetPowerTypeCostAmount(), GetRageCost(), SpellScript::GetSpell(), GetSuddenDeathRageCost(), POWER_RAGE, SpellScript::PreventHitDefaultEffect(), TRIGGERED_DONT_REPORT_CAST_ERROR, TRIGGERED_IGNORE_CAST_IN_PROGRESS, and CastSpellExtraArgsInit::TriggerFlags.
Referenced by Register().
|
inlineoverrideprivatevirtual |
Implements SpellScriptBase.
Definition at line 799 of file spell_warrior.cpp.
References EFFECT_0, HandleExecuteCast(), SpellScript::OnEffectLaunchTarget, SPELL_EFFECT_TRIGGER_SPELL, and SpellEffectFn.
|
inlineoverrideprivatevirtual |
Reimplemented from SpellScriptBase.
Definition at line 749 of file spell_warrior.cpp.
References EFFECT_0, SpellInfo::GetEffect(), SpellInfo::Id, SPELL_WARRIOR_SUDDEN_DEATH, SPELL_WARRIOR_SUDDEN_DEATH_BUFF, SpellScriptBase::ValidateSpellEffect(), and SpellScriptBase::ValidateSpellInfo().