◆ HandleScriptEffect()
| void spell_item_mirrens_drinking_hat::HandleScriptEffect |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
3791 {
3793 switch (
urand(1, 6))
3794 {
3795 case 1:
3796 case 2:
3797 case 3:
3799 case 4:
3800 case 5:
3802 case 6:
3804 }
3805
3808 }
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:1194
@ SPELL_AERIE_PEAK_PALE_ALE
Definition spell_item.cpp:3782
@ SPELL_STOUTHAMMER_LITE
Definition spell_item.cpp:3781
@ SPELL_LOCH_MODAN_LAGER
Definition spell_item.cpp:3780
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: