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

Public Member Functions

 at_lord_marrowgar_entrance ()
 
bool OnTrigger (Player *player, AreaTriggerEntry const *, bool) override
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 

Additional Inherited Members

- Protected Member Functions inherited from AreaTriggerScript
 AreaTriggerScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()
 

Constructor & Destructor Documentation

at_lord_marrowgar_entrance::at_lord_marrowgar_entrance ( )
inline
754 : AreaTriggerScript("at_lord_marrowgar_entrance") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

bool at_lord_marrowgar_entrance::OnTrigger ( Player player,
AreaTriggerEntry const ,
bool   
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

757  {
758  if (InstanceScript* instance = player->GetInstanceScript())
759  if (Creature* lordMarrowgar = ObjectAccessor::GetCreature(*player, instance->GetGuidData(DATA_LORD_MARROWGAR)))
760  lordMarrowgar->AI()->DoAction(ACTION_TALK_ENTER_ZONE);
761 
762  return true;
763  }
Definition: icecrown_citadel.h:75
Definition: Creature.h:467
Definition: boss_lord_marrowgar.cpp:98
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: InstanceScript.h:141

+ Here is the call graph for this function:


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