1834 {
1837 switch (
urand(1, 5))
1838 {
1839 case 1:
1841 break;
1842 case 2:
1844 break;
1845 case 3:
1847 break;
1848 case 4:
1850 break;
1851 }
1852 caster->
CastSpell(caster, spellId,
true,
nullptr);
1853 }
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:1179
@ SPELL_SUMMON_FURIOUS_MR_PINCHY
Definition spell_item.cpp:1807
@ SPELL_MR_PINCHYS_GIFT
Definition spell_item.cpp:1809
@ SPELL_TINY_MAGICAL_CRAWDAD
Definition spell_item.cpp:1808
@ SPELL_SUMMON_MIGHTY_MR_PINCHY
Definition spell_item.cpp:1806
@ SPELL_MR_PINCHYS_BLESSING
Definition spell_item.cpp:1805