1315 {
1318 if (!caster)
1319 return;
1320
1321 std::list<Creature*> summoners;
1323 std::list<Creature*> list_copy = summoners;
1325 if (summoners.empty())
1326 {
1327 if (list_copy.empty())
1328 return;
1329 summoners = list_copy;
1330 }
1332
1333 for (
uint32 i = 0; i < 3; ++i)
1335 for (
uint32 i = 0; i < 3; ++i)
1337 }
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_SUMMON_SUPPRESSER
Definition: boss_valithria_dreamwalker.cpp:72
@ SPELL_RECENTLY_SPAWNED
Definition: boss_valithria_dreamwalker.cpp:73
@ NPC_WORLD_TRIGGER
Definition: trial_of_the_crusader.h:152
void RandomResize(C &container, std::size_t requestedSize)
Definition: Containers.h:79
void GetCreaturesWithEntryInRange(std::list< Creature * > &creatureList, float radius, uint32 entry)
Definition: Object.cpp:3097
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
Definition: GridNotifiers.h:1627
void PreventDefaultAction()
Definition: SpellScript.cpp:985
Unit * GetCaster() const
Definition: SpellScript.cpp:1020