![]() |
TrinityCore
|
Inheritance diagram for spell_warr_anger_management_proc:Private Member Functions | |
| bool | Validate (SpellInfo const *) override |
| void | HandleProc (AuraEffect const *aurEff, ProcEventInfo const &eventInfo, std::span< int32 const > spellIds) const |
| void | OnProcArms (AuraEffect const *aurEff, ProcEventInfo const &eventInfo) const |
| void | OnProcFury (AuraEffect const *aurEff, ProcEventInfo const &eventInfo) const |
| void | OnProcProtection (AuraEffect const *aurEff, ProcEventInfo const &eventInfo) const |
| void | Register () override |
Static Private Member Functions | |
| static bool | ValidateProc (AuraEffect const *aurEff, ProcEventInfo const &eventInfo, ChrSpecialization spec) |
| static bool | CheckArmsProc (AuraScript const &, AuraEffect const *aurEff, ProcEventInfo const &eventInfo) |
| static bool | CheckFuryProc (AuraScript const &, AuraEffect const *aurEff, ProcEventInfo const &eventInfo) |
| static bool | CheckProtectionProc (AuraScript const &, AuraEffect const *aurEff, ProcEventInfo const &eventInfo) |
Static Private Attributes | |
| static constexpr FloatMilliseconds | CooldownReduction = 1s |
| static constexpr std::array< int32, 4 > | ArmsSpellIds = { SPELL_WARRIOR_COLOSSUS_SMASH, SPELL_WARRIOR_WARBREAKER, SPELL_WARRIOR_BLADESTORM, SPELL_WARRIOR_RAVAGER } |
| static constexpr std::array< int32, 3 > | FurySpellIds = { SPELL_WARRIOR_RECKLESSNESS, SPELL_WARRIOR_BLADESTORM, SPELL_WARRIOR_RAVAGER } |
| static constexpr std::array< int32, 2 > | ProtectionSpellIds = { SPELL_WARRIOR_AVATAR, SPELL_WARRIOR_SHIELD_WALL } |
Definition at line 154 of file spell_warrior.cpp.
|
inlinestaticprivate |
Definition at line 175 of file spell_warrior.cpp.
References ProcEventInfo::GetSpellInfo(), SpellInfo::IsAffected(), SPELLFAMILY_WARRIOR, ValidateProc(), and WarriorArms.
Referenced by Register().
|
inlinestaticprivate |
Definition at line 187 of file spell_warrior.cpp.
References ValidateProc(), and WarriorFury.
Referenced by Register().
|
inlinestaticprivate |
Definition at line 192 of file spell_warrior.cpp.
References ValidateProc(), and WarriorProtection.
Referenced by Register().
|
inlineprivate |
Definition at line 211 of file spell_warrior.cpp.
References CooldownReduction, AuraEffect::GetAmount(), Spell::GetPowerTypeCostAmount(), ProcEventInfo::GetProcSpell(), Unit::GetSpellHistory(), AuraScript::GetTarget(), SpellHistory::ModifyCooldown(), and POWER_RAGE.
Referenced by OnProcArms(), OnProcFury(), and OnProcProtection().
|
inlineprivate |
Definition at line 221 of file spell_warrior.cpp.
References ArmsSpellIds, and HandleProc().
Referenced by Register().
|
inlineprivate |
Definition at line 226 of file spell_warrior.cpp.
References FurySpellIds, and HandleProc().
Referenced by Register().
|
inlineprivate |
Definition at line 231 of file spell_warrior.cpp.
References HandleProc(), and ProtectionSpellIds.
Referenced by Register().
|
inlineoverrideprivatevirtual |
Implements SpellScriptBase.
Definition at line 236 of file spell_warrior.cpp.
References AuraCheckEffectProcFn, AuraEffectProcFn, CheckArmsProc(), CheckFuryProc(), CheckProtectionProc(), AuraScript::DoCheckEffectProc, EFFECT_0, EFFECT_1, EFFECT_2, AuraScript::OnEffectProc, OnProcArms(), OnProcFury(), OnProcProtection(), and SPELL_AURA_DUMMY.
|
inlineoverrideprivatevirtual |
Reimplemented from SpellScriptBase.
Definition at line 197 of file spell_warrior.cpp.
References SPELL_WARRIOR_AVATAR, SPELL_WARRIOR_BLADESTORM, SPELL_WARRIOR_COLOSSUS_SMASH, SPELL_WARRIOR_RAVAGER, SPELL_WARRIOR_RECKLESSNESS, SPELL_WARRIOR_SHIELD_WALL, SPELL_WARRIOR_WARBREAKER, and SpellScriptBase::ValidateSpellInfo().
|
inlinestaticprivate |
Definition at line 156 of file spell_warrior.cpp.
References ProcEventInfo::GetActor(), AuraEffect::GetAmountAsInt(), Spell::GetPowerTypeCostAmount(), Player::GetPrimarySpecialization(), ProcEventInfo::GetProcSpell(), POWER_RAGE, and Object::ToPlayer().
Referenced by CheckArmsProc(), CheckFuryProc(), and CheckProtectionProc().
|
staticconstexprprivate |
Definition at line 248 of file spell_warrior.cpp.
Referenced by OnProcArms().
|
staticconstexprprivate |
Definition at line 247 of file spell_warrior.cpp.
Referenced by HandleProc().
|
staticconstexprprivate |
Definition at line 249 of file spell_warrior.cpp.
Referenced by OnProcFury().
|
staticconstexprprivate |
Definition at line 250 of file spell_warrior.cpp.
Referenced by OnProcProtection().