1728 {
1730 std::vector<uint32> possibleSpells;
1732 {
1737 break;
1741 break;
1745 break;
1750 break;
1754 break;
1755 }
1756
1757 caster->
CastSpell(caster, possibleSpells[
irand(0, (possibleSpells.size() - 1))],
true,
nullptr);
1758 }
int32 irand(int32 min, int32 max)
Definition: Random.cpp:37
@ SPELL_FLASK_OF_THE_NORTH_SP
Definition: spell_item.cpp:1713
@ SPELL_FLASK_OF_THE_NORTH_STR
Definition: spell_item.cpp:1715
@ SPELL_FLASK_OF_THE_NORTH_AP
Definition: spell_item.cpp:1714
@ CLASS_HUNTER
Definition: SharedDefines.h:143
@ CLASS_DRUID
Definition: SharedDefines.h:151
@ CLASS_SHAMAN
Definition: SharedDefines.h:147
@ CLASS_PRIEST
Definition: SharedDefines.h:145
@ CLASS_WARRIOR
Definition: SharedDefines.h:141
@ CLASS_WARLOCK
Definition: SharedDefines.h:149
@ CLASS_MAGE
Definition: SharedDefines.h:148
@ CLASS_DEATH_KNIGHT
Definition: SharedDefines.h:146
@ CLASS_PALADIN
Definition: SharedDefines.h:142
@ CLASS_ROGUE
Definition: SharedDefines.h:144
uint8 getClass() const
Definition: Unit.h:747
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:1168
Unit * GetCaster()
Definition: SpellScript.cpp:401