◆ HandleDummy()
| void spell_item_noggenfogger_elixir::HandleDummy |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
2091 {
2094 switch (
urand(1, 3))
2095 {
2096 case 1:
2098 break;
2099 case 2:
2101 break;
2102 }
2103
2104 caster->
CastSpell(caster, spellId,
true,
nullptr);
2105 }
std::uint32_t uint32
Definition Define.h:107
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
Unit * GetCaster()
Definition SpellScript.cpp:401
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition Unit.cpp:1194
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED1
Definition spell_item.cpp:2066
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED2
Definition spell_item.cpp:2067
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED3
Definition spell_item.cpp:2068
References Unit::CastSpell(), SpellScript::GetCaster(), SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED1, SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED2, SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED3, and urand().
Referenced by Register().
◆ Load()
| bool spell_item_noggenfogger_elixir::Load |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ PrepareSpellScript()
◆ Register()
| void spell_item_noggenfogger_elixir::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ Validate()
| bool spell_item_noggenfogger_elixir::Validate |
( |
SpellInfo const * |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: