2016 {
2019 switch (
urand(1, 5))
2020 {
2021 case 1:
2023 break;
2024 case 2:
2026 break;
2027 case 3:
2029 break;
2030 case 4:
2032 break;
2033 }
2034 caster->
CastSpell(caster, spellId,
true,
nullptr);
2035 }
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:1375
@ SPELL_SUMMON_FURIOUS_MR_PINCHY
Definition spell_item.cpp:1989
@ SPELL_MR_PINCHYS_GIFT
Definition spell_item.cpp:1991
@ SPELL_TINY_MAGICAL_CRAWDAD
Definition spell_item.cpp:1990
@ SPELL_SUMMON_MIGHTY_MR_PINCHY
Definition spell_item.cpp:1988
@ SPELL_MR_PINCHYS_BLESSING
Definition spell_item.cpp:1987