◆ HandleDummy()
| void spell_item_noggenfogger_elixir::HandleDummy |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
2260 {
2263 switch (
urand(1, 3))
2264 {
2265 case 1:
2267 break;
2268 case 2:
2270 break;
2271 }
2272
2273 caster->
CastSpell(caster, spellId,
true,
nullptr);
2274 }
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:1389
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED1
Definition spell_item.cpp:2235
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED2
Definition spell_item.cpp:2236
@ SPELL_NOGGENFOGGER_ELIXIR_TRIGGERED3
Definition spell_item.cpp:2237
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: