261 {
263 if (!caster)
264 return;
265
267 {
269
270 if (dist < 5.f || dist > 16.f)
271 return true;
272
274 return true;
275
276 return false;
277 });
278
279 std::list<WorldObject*> targets2 = targets;
280
282 {
284 return false;
285 return true;
286 });
287
289
291 {
292 if (targets.empty())
293 targets = targets2;
294 else
296 }
297 else
298 targets = targets2;
299 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
@ NPC_BLADE_DANCE_TARGET
Definition: boss_warchief_kargath_bladefist.cpp:49
void RandomResize(C &container, std::size_t requestedSize)
Definition: Containers.h:79
uint32 GetEntry() const
Definition: Object.h:112
float GetDistance2d(WorldObject const *obj) const
Definition: Object.cpp:1263
Player * SelectNearestPlayer(float distance=0) const
Definition: Object.cpp:2473
Unit * GetCaster()
Definition: SpellScript.cpp:401