455 std::vector<uint32> possibleSpells;
482 if (possibleSpells.empty())
484 TC_LOG_WARN(
"spells",
"Missing spells for class %u in script spell_item_flask_of_the_north", caster->
getClass());
488 caster->
CastSpell(caster, possibleSpells[
urand(0, (possibleSpells.size() - 1))],
true,
NULL);
Definition: SharedDefines.h:170
Definition: SharedDefines.h:172
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: spell_item.cpp:433
Definition: SharedDefines.h:168
Definition: SharedDefines.h:167
Definition: SharedDefines.h:171
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
Definition: SharedDefines.h:173
Definition: SharedDefines.h:174
Definition: spell_item.cpp:432
Unit * GetCaster()
Definition: SpellScript.cpp:394
Definition: SharedDefines.h:169
uint8 getClass() const
Definition: Unit.h:1413
#define TC_LOG_WARN(filterType__,...)
Definition: Log.h:204
Definition: spell_item.cpp:431
Definition: SharedDefines.h:175
Definition: SharedDefines.h:177
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:869