TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PlayerPetOrDevoutFollowerCheck Class Reference

Public Member Functions

bool operator() (WorldObject *object) const
 

Member Function Documentation

bool PlayerPetOrDevoutFollowerCheck::operator() ( WorldObject object) const
inline
544  {
545  // Valid targets are players, pets and Devout Followers
546  if (Creature* creature = object->ToCreature())
547  return (!creature->ToPet() && object->GetEntry() != NPC_DEVOUT_FOLLOWER);
548  return (!object->ToPlayer());
549  }
Definition: Creature.h:467
Player * ToPlayer()
Definition: Object.h:191
Definition: boss_high_priestess_azil.cpp:63
Creature * ToCreature()
Definition: Object.h:194

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: