AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
at_hor_battered_hilt_start Class Reference
Inheritance diagram for at_hor_battered_hilt_start:
AreaTriggerScript ScriptObject

Public Member Functions

 at_hor_battered_hilt_start ()
 
bool OnTrigger (Player *player, AreaTrigger const *) override
 
- Public Member Functions inherited from AreaTriggerScript
bool IsDatabaseBound () const override
 
virtual bool OnTrigger (Player *, AreaTrigger const *)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Additional Inherited Members

- Protected Member Functions inherited from AreaTriggerScript
 AreaTriggerScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ at_hor_battered_hilt_start()

at_hor_battered_hilt_start::at_hor_battered_hilt_start ( )
inline
2358: AreaTriggerScript("at_hor_battered_hilt_start") { }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

bool at_hor_battered_hilt_start::OnTrigger ( Player player,
AreaTrigger const *   
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

2361 {
2362 if (player->HasAura(70013))
2363 if (InstanceScript* instance = player->GetInstanceScript())
2364 instance->SetData(DATA_BATTERED_HILT, 2);
2365 return true;
2366 }
@ DATA_BATTERED_HILT
Definition: halls_of_reflection.h:36
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5669
Definition: InstanceScript.h:142

References DATA_BATTERED_HILT, WorldObject::GetInstanceScript(), and Unit::HasAura().