1729 {
1731 std::vector<uint32> possibleSpells;
1733 {
1738 break;
1742 break;
1746 break;
1751 break;
1755 break;
1756 }
1757
1758 caster->
CastSpell(caster, possibleSpells[
irand(0, (possibleSpells.size() - 1))],
true,
nullptr);
1759 }
int32 irand(int32 min, int32 max)
Definition: Random.cpp:37
@ SPELL_FLASK_OF_THE_NORTH_SP
Definition: spell_item.cpp:1714
@ SPELL_FLASK_OF_THE_NORTH_STR
Definition: spell_item.cpp:1716
@ SPELL_FLASK_OF_THE_NORTH_AP
Definition: spell_item.cpp:1715
@ 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:800
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