1798 {
1801 switch (
urand(1, 5))
1802 {
1803 case 1:
1805 break;
1806 case 2:
1808 break;
1809 case 3:
1811 break;
1812 case 4:
1814 break;
1815 }
1816 caster->
CastSpell(caster, spellId,
true,
nullptr);
1817 }
std::uint32_t uint32
Definition: Define.h:108
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
@ SPELL_SUMMON_FURIOUS_MR_PINCHY
Definition: spell_item.cpp:1771
@ SPELL_MR_PINCHYS_GIFT
Definition: spell_item.cpp:1773
@ SPELL_TINY_MAGICAL_CRAWDAD
Definition: spell_item.cpp:1772
@ SPELL_SUMMON_MIGHTY_MR_PINCHY
Definition: spell_item.cpp:1770
@ SPELL_MR_PINCHYS_BLESSING
Definition: spell_item.cpp:1769
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:1169
Unit * GetCaster()
Definition: SpellScript.cpp:401