![]() |
TrinityCore
|
Inheritance diagram for spell_item_aura_of_madness:Private Member Functions | |
| PrepareAuraScript (spell_item_aura_of_madness) | |
| bool | Validate (SpellInfo const *) override |
| void | HandleProc (AuraEffect const *aurEff, ProcEventInfo &eventInfo) |
| void | Register () override |
Definition at line 292 of file spell_item.cpp.
|
inlineprivate |
Definition at line 312 of file spell_item.cpp.
References WorldObject::CastSpell(), ProcEventInfo::GetActor(), Unit::GetClass(), MAX_CLASSES, AuraScript::PreventDefaultAction(), roll_chance_i(), SAY_MADNESS, Trinity::Containers::SelectRandomContainerElement(), SPELL_DELUSIONAL, SPELL_DEMENTIA, SPELL_KLEPTOMANIA, SPELL_MANIC, SPELL_MARTYR_COMPLEX, SPELL_MEGALOMANIA, SPELL_NARCISSISM, SPELL_PARANOIA, and SPELL_SOCIOPATH.
Referenced by Register().
|
private |
|
inlineoverrideprivatevirtual |
Implements _SpellScript.
Definition at line 351 of file spell_item.cpp.
References AuraEffectProcFn, EFFECT_0, HandleProc(), AuraScript::OnEffectProc, and SPELL_AURA_DUMMY.
|
inlineoverrideprivatevirtual |
Reimplemented from _SpellScript.
Definition at line 296 of file spell_item.cpp.
References SAY_MADNESS, sObjectMgr, SPELL_DELUSIONAL, SPELL_DEMENTIA, SPELL_KLEPTOMANIA, SPELL_MANIC, SPELL_MARTYR_COMPLEX, SPELL_MEGALOMANIA, SPELL_NARCISSISM, SPELL_PARANOIA, SPELL_SOCIOPATH, and _SpellScript::ValidateSpellInfo().