◆ HandleDummy()
| void spell_item_noggenfogger_elixir::HandleDummy |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
2286 {
2289 switch (
urand(1, 3))
2290 {
2291 case 1:
2293 break;
2294 case 2:
2296 break;
2297 }
2298
2299 caster->
CastSpell(caster, spellId,
true,
nullptr);
2300 }
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:1378
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED1
Definition spell_item.cpp:2261
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED2
Definition spell_item.cpp:2262
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED3
Definition spell_item.cpp:2263
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: