TrinityCore
Loading...
Searching...
No Matches
spell_pilgrims_bounty_on_plate Class Reference
+ Inheritance diagram for spell_pilgrims_bounty_on_plate:

Public Member Functions

 spell_pilgrims_bounty_on_plate (uint32 triggeredSpellId1, uint32 triggeredSpellId2, uint32 triggeredSpellId3, uint32 triggeredSpellId4)
 
- Public Member Functions inherited from SpellScript
 SpellScript ()
 
 ~SpellScript ()
 
bool _Validate (SpellInfo const *entry) override
 
bool _Load (Spell *spell)
 
void _InitHit ()
 
bool _IsEffectPrevented (SpellEffIndex effIndex)
 
bool _IsDefaultEffectPrevented (SpellEffIndex effIndex)
 
void _PrepareScriptCall (SpellScriptHookType hookType)
 
void _FinishScriptCall ()
 
bool IsInCheckCastHook () const
 
bool IsAfterTargetSelectionPhase () const
 
bool IsInTargetHook () const
 
bool IsInModifiableHook () const
 
bool IsInHitPhase () const
 
bool IsInEffectHook () const
 
Unit * GetCaster () const
 
GameObject * GetGObjCaster () const
 
Unit * GetOriginalCaster () const
 
SpellInfo const * GetSpellInfo () const
 
SpellEffectInfo const & GetEffectInfo (SpellEffIndex effIndex) const
 
SpellValue const * GetSpellValue () const
 
WorldLocation const * GetExplTargetDest () const
 
void SetExplTargetDest (WorldLocation &loc)
 
WorldObject * GetExplTargetWorldObject () const
 
Unit * GetExplTargetUnit () const
 
GameObject * GetExplTargetGObj () const
 
Item * GetExplTargetItem () const
 
int64 GetUnitTargetCountForEffect (SpellEffIndex effect) const
 
int64 GetGameObjectTargetCountForEffect (SpellEffIndex effect) const
 
int64 GetItemTargetCountForEffect (SpellEffIndex effect) const
 
Unit * GetHitUnit () const
 
Creature * GetHitCreature () const
 
Player * GetHitPlayer () const
 
Item * GetHitItem () const
 
GameObject * GetHitGObj () const
 
Corpse * GetHitCorpse () const
 
WorldLocation * GetHitDest () const
 
int32 GetHitDamage () const
 
void SetHitDamage (int32 damage)
 
void PreventHitDamage ()
 
int32 GetHitHeal () const
 
void SetHitHeal (int32 heal)
 
void PreventHitHeal ()
 
Spell * GetSpell () const
 
Aura * GetHitAura (bool dynObjAura=false) const
 
void PreventHitAura ()
 
void PreventHitEffect (SpellEffIndex effIndex)
 
void PreventHitDefaultEffect (SpellEffIndex effIndex)
 
SpellEffectInfo const & GetEffectInfo () const
 
int32 GetEffectValue () const
 
void SetEffectValue (int32 value)
 
Item * GetCastItem () const
 
void CreateItem (uint32 itemId)
 
SpellInfo const * GetTriggeringSpell () const
 
void FinishCast (SpellCastResult result, uint32 *param1=nullptr, uint32 *param2=nullptr)
 
void SetCustomCastResultMessage (SpellCustomErrors result)
 
- Public Member Functions inherited from _SpellScript
 _SpellScript ()
 
virtual ~_SpellScript ()
 
void _Register ()
 
void _Unload ()
 
void _Init (std::string const *scriptname, uint32 spellId)
 
std::string const * _GetScriptName () const
 
virtual bool Load ()
 
virtual void Unload ()
 

Private Member Functions

 PrepareSpellScript (spell_pilgrims_bounty_on_plate)
 
bool Validate (SpellInfo const *) override
 
Vehicle * GetTable (Unit *target)
 
Unit * GetPlateInSeat (Vehicle *table, uint8 seat)
 
void HandleDummy (SpellEffIndex)
 
void Register () override
 

Private Attributes

uint32 _triggeredSpellId1
 
uint32 _triggeredSpellId2
 
uint32 _triggeredSpellId3
 
uint32 _triggeredSpellId4
 

Additional Inherited Members

- Static Public Member Functions inherited from _SpellScript
static bool ValidateSpellInfo (std::initializer_list< uint32 > spellIds)
 
template<class T >
static bool ValidateSpellInfo (T const &spellIds)
 
- Public Attributes inherited from SpellScript
HookList< CastHandler > BeforeCast
 
HookList< CastHandler > OnCast
 
HookList< CastHandler > AfterCast
 
HookList< CheckCastHandler > OnCheckCast
 
HookList< OnCalculateResistAbsorbHandler > OnCalculateResistAbsorb
 
HookList< EffectHandler > OnEffectLaunch
 
HookList< EffectHandler > OnEffectLaunchTarget
 
HookList< EffectHandler > OnEffectHit
 
HookList< EffectHandler > OnEffectHitTarget
 
HookList< EffectHandler > OnEffectSuccessfulDispel
 
HookList< BeforeHitHandler > BeforeHit
 
HookList< HitHandler > OnHit
 
HookList< HitHandler > AfterHit
 
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
 
HookList< ObjectTargetSelectHandler > OnObjectTargetSelect
 
HookList< DestinationTargetSelectHandler > OnDestinationTargetSelect
 
- Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
 
std::string const * m_scriptName
 
uint32 m_scriptSpellId
 

Detailed Description

Definition at line 264 of file pilgrims_bounty.cpp.

Constructor & Destructor Documentation

◆ spell_pilgrims_bounty_on_plate()

spell_pilgrims_bounty_on_plate::spell_pilgrims_bounty_on_plate ( uint32  triggeredSpellId1,
uint32  triggeredSpellId2,
uint32  triggeredSpellId3,
uint32  triggeredSpellId4 
)
inline

Definition at line 274 of file pilgrims_bounty.cpp.

Member Function Documentation

◆ GetPlateInSeat()

Unit * spell_pilgrims_bounty_on_plate::GetPlateInSeat ( Vehicle *  table,
uint8  seat 
)
inlineprivate

Definition at line 305 of file pilgrims_bounty.cpp.

References Vehicle::GetPassenger(), and SEAT_PLATE_HOLDER.

Referenced by HandleDummy().

◆ GetTable()

Vehicle * spell_pilgrims_bounty_on_plate::GetTable ( Unit *  target)
inlineprivate

◆ HandleDummy()

◆ PrepareSpellScript()

spell_pilgrims_bounty_on_plate::PrepareSpellScript ( spell_pilgrims_bounty_on_plate  )
private

◆ Register()

void spell_pilgrims_bounty_on_plate::Register ( )
inlineoverrideprivatevirtual

◆ Validate()

bool spell_pilgrims_bounty_on_plate::Validate ( SpellInfo const *  )
inlineoverrideprivatevirtual

Member Data Documentation

◆ _triggeredSpellId1

uint32 spell_pilgrims_bounty_on_plate::_triggeredSpellId1
private

Definition at line 268 of file pilgrims_bounty.cpp.

Referenced by HandleDummy(), and Validate().

◆ _triggeredSpellId2

uint32 spell_pilgrims_bounty_on_plate::_triggeredSpellId2
private

Definition at line 269 of file pilgrims_bounty.cpp.

Referenced by HandleDummy(), and Validate().

◆ _triggeredSpellId3

uint32 spell_pilgrims_bounty_on_plate::_triggeredSpellId3
private

Definition at line 270 of file pilgrims_bounty.cpp.

Referenced by HandleDummy(), and Validate().

◆ _triggeredSpellId4

uint32 spell_pilgrims_bounty_on_plate::_triggeredSpellId4
private

Definition at line 271 of file pilgrims_bounty.cpp.

Referenced by HandleDummy(), and Validate().


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