1238 {
1240 switch (
urand(0, 3))
1241 {
1242 case 1:
1244 break;
1245 case 2:
1247 break;
1248 }
1249
1253 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
bool roll_chance_i(int chance)
Definition: Random.h:59
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_SUMMON_ADVENTUROUS_DWARF
Definition: spell_quest.cpp:1219
@ SPELL_ORANGE_FALLS_TO_GROUND
Definition: spell_quest.cpp:1217
@ SPELL_PAPAYA_FALLS_TO_GROUND
Definition: spell_quest.cpp:1218
@ SPELL_BANANAS_FALL_TO_GROUND
Definition: spell_quest.cpp:1216
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:1167
Unit * GetCaster()
Definition: SpellScript.cpp:401