388 {
389
392
393
395 {
398 return;
399 }
400
403
404 bool foundSomeone = false;
405
406
407 std::list<Player*> playerList;
411 for (std::list<Player*>::const_iterator itr = playerList.begin(); itr != playerList.end(); ++itr)
412 {
413 if ((*itr) != target && (*itr)->HasAura(
GetId()))
414 {
415 if (caster)
416 {
419 }
420 foundSomeone = true;
421
422 }
423 }
424
427 }
static First const & RAND(First const &first, Second const &second, Rest const &... rest)
Definition: CreatureAIImpl.h:30
#define INTERACTION_DISTANCE
Definition: ObjectDefines.h:24
@ SPELL_BASKET_CHECK
Definition: love_in_air.cpp:368
@ SPELL_ROMANTIC_PICNIC_ACHIEV
Definition: love_in_air.cpp:373
@ SPELL_DRINK_VISUAL
Definition: love_in_air.cpp:372
@ SPELL_MEAL_EAT_VISUAL
Definition: love_in_air.cpp:370
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4758
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5669
uint8 getStandState() const
Definition: Unit.h:982
static void VisitWorldObjects(WorldObject const *obj, T &visitor, float radius, bool dont_load=true)
Definition: CellImpl.h:193
Definition: GridNotifiers.h:525
Definition: GridNotifiers.h:1354
Unit * GetCaster() const
Definition: SpellScript.cpp:1020
Aura * GetAura() const
Definition: SpellScript.cpp:1045
uint32 GetId() const
Definition: SpellScript.cpp:1010