1781 {
1783
1785 {
1786 switch (
urand(0, 3))
1787 {
1788 case 0:
1790 break;
1791 case 1:
1793 break;
1794 case 2:
1796 break;
1797 case 3:
1799 break;
1800 }
1801 }
1802 else
1804
1806 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_ELUNE_CANDLE_OMEN_HAND_R
Definition: spell_generic.cpp:1759
@ SPELL_ELUNE_CANDLE_NORMAL
Definition: spell_generic.cpp:1761
@ NPC_OMEN
Definition: spell_generic.cpp:1754
@ SPELL_ELUNE_CANDLE_OMEN_HEAD
Definition: spell_generic.cpp:1757
@ SPELL_ELUNE_CANDLE_OMEN_CHEST
Definition: spell_generic.cpp:1758
@ SPELL_ELUNE_CANDLE_OMEN_HAND_L
Definition: spell_generic.cpp:1760
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:1168
Unit * GetHitUnit()
Definition: SpellScript.cpp:448
Unit * GetCaster()
Definition: SpellScript.cpp:401