2038 {
2041 switch (
urand(1, 5))
2042 {
2043 case 1:
2045 break;
2046 case 2:
2048 break;
2049 case 3:
2051 break;
2052 case 4:
2054 break;
2055 }
2056 caster->
CastSpell(caster, spellId,
true,
nullptr);
2057 }
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:1350
@ SPELL_SUMMON_FURIOUS_MR_PINCHY
Definition spell_item.cpp:2011
@ SPELL_MR_PINCHYS_GIFT
Definition spell_item.cpp:2013
@ SPELL_TINY_MAGICAL_CRAWDAD
Definition spell_item.cpp:2012
@ SPELL_SUMMON_MIGHTY_MR_PINCHY
Definition spell_item.cpp:2010
@ SPELL_MR_PINCHYS_BLESSING
Definition spell_item.cpp:2009