◆ HandleDummy()
void spell_item_noggenfogger_elixir::HandleDummy |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
2050 {
2053 switch (
urand(1, 3))
2054 {
2055 case 1:
2057 break;
2058 case 2:
2060 break;
2061 }
2062
2063 caster->
CastSpell(caster, spellId,
true,
nullptr);
2064 }
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:1178
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED1
Definition spell_item.cpp:2025
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED2
Definition spell_item.cpp:2026
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED3
Definition spell_item.cpp:2027
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: