◆ HandleScriptEffect()
| void spell_item_mirrens_drinking_hat::HandleScriptEffect |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
3960 {
3962 switch (
urand(1, 6))
3963 {
3964 case 1:
3965 case 2:
3966 case 3:
3968 case 4:
3969 case 5:
3971 case 6:
3973 }
3974
3977 }
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:1372
@ SPELL_AERIE_PEAK_PALE_ALE
Definition spell_item.cpp:3951
@ SPELL_STOUTHAMMER_LITE
Definition spell_item.cpp:3950
@ SPELL_LOCH_MODAN_LAGER
Definition spell_item.cpp:3949
References Unit::CastSpell(), SpellScript::GetCaster(), SPELL_AERIE_PEAK_PALE_ALE, SPELL_LOCH_MODAN_LAGER, SPELL_STOUTHAMMER_LITE, and urand().
Referenced by Register().
◆ PrepareSpellScript()
◆ Register()
| void spell_item_mirrens_drinking_hat::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: