◆ HandleDummy()
| void spell_item_noggenfogger_elixir::HandleDummy |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
2233 {
2236 switch (
urand(1, 3))
2237 {
2238 case 1:
2240 break;
2241 case 2:
2243 break;
2244 }
2245
2246 caster->
CastSpell(caster, spellId,
true,
nullptr);
2247 }
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:1375
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED1
Definition spell_item.cpp:2208
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED2
Definition spell_item.cpp:2209
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED3
Definition spell_item.cpp:2210
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: