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

Public Member Functions

 at_hor_impenetrable_door ()
 
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_hor_impenetrable_door::at_hor_impenetrable_door ( )
inline
2065 : AreaTriggerScript("at_hor_impenetrable_door") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

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

return false to handle teleport by db

Reimplemented from AreaTriggerScript.

2068  {
2069  if (player->IsGameMaster())
2070  return true;
2071 
2072  InstanceScript* _instance = player->GetInstanceScript();
2073  if (_instance->GetBossState(DATA_MARWYN) == DONE)
2074  return true;
2075 
2077  return false;
2078  }
Definition: inflate.h:49
Definition: halls_of_reflection.h:35
Definition: InstanceScript.h:141
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227

+ Here is the call graph for this function:


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