1694 {
1696 std::vector<uint32> possibleSpells;
1698 {
1703 break;
1707 break;
1711 break;
1716 break;
1720 break;
1721 }
1722
1723 caster->
CastSpell(caster, possibleSpells[
irand(0, (possibleSpells.size() - 1))],
true,
nullptr);
1724 }
int32 irand(int32 min, int32 max)
Definition: Random.cpp:37
@ SPELL_FLASK_OF_THE_NORTH_SP
Definition: spell_item.cpp:1679
@ SPELL_FLASK_OF_THE_NORTH_STR
Definition: spell_item.cpp:1681
@ SPELL_FLASK_OF_THE_NORTH_AP
Definition: spell_item.cpp:1680
@ CLASS_HUNTER
Definition: SharedDefines.h:115
@ CLASS_DRUID
Definition: SharedDefines.h:123
@ CLASS_SHAMAN
Definition: SharedDefines.h:119
@ CLASS_PRIEST
Definition: SharedDefines.h:117
@ CLASS_WARRIOR
Definition: SharedDefines.h:113
@ CLASS_WARLOCK
Definition: SharedDefines.h:121
@ CLASS_MAGE
Definition: SharedDefines.h:120
@ CLASS_DEATH_KNIGHT
Definition: SharedDefines.h:118
@ CLASS_PALADIN
Definition: SharedDefines.h:114
@ CLASS_ROGUE
Definition: SharedDefines.h:116
uint8 getClass() const
Definition: Unit.h:1426
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:1169
Unit * GetCaster()
Definition: SpellScript.cpp:401